{"id":20340897,"url":"https://github.com/leancodepl/leancode_kratos","last_synced_at":"2026-01-16T17:01:54.927Z","repository":{"id":228970610,"uuid":"653578123","full_name":"leancodepl/leancode_kratos","owner":"leancodepl","description":"Flutter client for Kratos","archived":false,"fork":false,"pushed_at":"2026-01-15T15:20:05.000Z","size":420,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-15T15:51:55.501Z","etag":null,"topics":["authentication","flutter","kratos"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leancodepl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-14T10:15:41.000Z","updated_at":"2026-01-15T11:24:41.000Z","dependencies_parsed_at":"2024-03-21T12:28:59.149Z","dependency_job_id":"8efa46f1-4c67-4d7a-a525-30ff62e8341e","html_url":"https://github.com/leancodepl/leancode_kratos","commit_stats":null,"previous_names":["leancodepl/leancode_kratos"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/leancodepl/leancode_kratos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fleancode_kratos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fleancode_kratos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fleancode_kratos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fleancode_kratos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancodepl","download_url":"https://codeload.github.com/leancodepl/leancode_kratos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fleancode_kratos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","flutter","kratos"],"created_at":"2024-11-14T21:24:35.430Z","updated_at":"2026-01-16T17:01:54.907Z","avatar_url":"https://github.com/leancodepl.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KratosClient\n\nThe KratosClient provides an API client for interacting with an Ory Kratos server.\n\n## Usage\n\n### To create a client\n\n```dart\nfinal client = KratosClient(\n  baseUri: Uri.parse('https://kratos.example.com'), \n  browserCallback: (url) async {\n    // open browser and return code\n  },\n);\n```\n\n## Features\n\n### The main available APIs are\n\n### [Registration](documentation/registration.md)\n\n- `registerWithPassword` - Register using email and password\n- `registerWithOidc` - Register using OpenID Connect provider\n- `registerWithPasskey` - Register using a passkey\n\n### [Login](documentation/login.md)\n\n- `loginWithPassword` - Login with email and password\n- `loginWithPasskey` - Login with a passkey\n\n### [Verification](documentation/verification.md)\n\n- `getVerificationFlow` - Get verification flow\n- `verifyAccount` - Complete email verification\n\n### [Recovery](documentation/recovery.md)\n\n- `getRecoveryFlow` - Get account recovery flow\n- `sendEmailRecoveryFlow` - Initiate email account recovery\n- `sendCodeRecoveryFlow` - Submit recovery code\n\n### [Profile](documentation/profile.md)\n\n- `getUserProfile` - Get user profile\n- `updateTraits` - Update user profile traits\n- `updatePassword` - Update user password\n\n### [Settings](documentation/settings.md)\n\n- `addPasskey` - Add a new passkey\n- `removePasskey` - Remove a linked passkey\n- `getPasskeys` - Get all linked passkeys\n\n### [Other](documentation/others.md)\n\n- `logout` - Logout user\n- `refreshSessionToken` - Refresh session token\n- `isSessionValid` - Check if session is valid\n- `getSession` - Get session\n\n## Credentials Storage\n\nThe client handles persisting credentials like the session token. By default it uses `FlutterSecureCredentialsStorage` but you can pass a custom `CredentialsStorage` on construction.\n\n## Error Handling\n\nMost methods return a union type for success or failure responses. See code for details on specific error types.\n\n## HTTP Client\n\nThe `http.Client` used to make requests can be customized by passing your own on construction.\n\n## Logging\n\nDebug logging is printed using the `logging` package.\n\n## Browser vs Api flows\n\nIn Browser flows session is stored in http-only cookie and `CredentialsStorage` is not used.\n\nIn Api flows token is stored in `CredentialsStorage`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Fleancode_kratos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancodepl%2Fleancode_kratos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Fleancode_kratos/lists"}