{"id":19610865,"url":"https://github.com/onflow/fcl-auth-android","last_synced_at":"2025-07-28T14:32:34.597Z","repository":{"id":103345248,"uuid":"409876251","full_name":"onflow/fcl-auth-android","owner":"onflow","description":"A Kotlin library for the Flow Client Library (FCL) that enables Flow wallet authentication on Android devices","archived":false,"fork":false,"pushed_at":"2021-09-28T19:57:16.000Z","size":788,"stargazers_count":2,"open_issues_count":1,"forks_count":5,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-05T04:11:14.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2021-09-24T07:39:39.000Z","updated_at":"2023-02-23T14:33:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c472ffae-8a73-474a-8788-f7bb30d84a69","html_url":"https://github.com/onflow/fcl-auth-android","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Ffcl-auth-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Ffcl-auth-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Ffcl-auth-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Ffcl-auth-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onflow","download_url":"https://codeload.github.com/onflow/fcl-auth-android/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219600,"owners_count":21554444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-11T10:34:18.052Z","updated_at":"2025-07-28T14:32:34.576Z","avatar_url":"https://github.com/onflow.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"\"\u003e\n    \u003cimg src=\"./fcl-android.svg\" alt=\"Logo\" width=\"400\" height=\"auto\"\u003e\n  \u003c/a\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ci\u003eAndroid Kotlin library for the Flow Client Library (FCL).\u003c/i\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/onflow/fcl-android/issues\"\u003eReport a Bug\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\nFCL Auth Android is a Kotlin library for the [Flow Client Library (FCL)](https://docs.onflow.org/fcl/)\nthat enables Flow wallet authentication on Android devices.\n\n## Demo\n\nThe [example app](/example) in this project demonstrates how to use FCL inside an Android app.\n\n\u003cimg src=\"/example/fcl-android-demo-dapper.gif\" width=\"200\" /\u003e\n\n## Installation\n\nYou can download the latest version from the [GitHub Apache Maven registry](https://github.com/onflow/fcl-android/packages).\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.onflow.fcl\u003c/groupId\u003e\n  \u003cartifactId\u003efcl-auth-android\u003c/artifactId\u003e\n  \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n- [How to install with Maven](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#installing-a-package)\n- [How to install with Gradle](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry#using-a-published-package)\n\n## Configuration\n\nYou will need to configure your app information before using the authentication library.\n\nFCL Android ships with several built-in wallet providers (Dapper, Blocto),\nbut you can also define custom wallet providers if needed.\n\n```kotlin\nimport org.onflow.fcl.android.auth.AppInfo\nimport org.onflow.fcl.android.auth.DefaultProvider\nimport org.onflow.fcl.android.auth.FCL\n\nval fcl = FCL(\n    AppInfo(\n        title = \"FCL Demo App\",\n        icon = URL(\"https://foo.com/bar.png\"),\n    )\n)\n\nfcl.providers.add(DefaultProvider.DAPPER)\nfcl.providers.add(DefaultProvider.BLOCTO)\n```\n\n## Authenticate \n\n```kotlin\n// use inside of an activity class\nval context: android.content.Context = this\n\nfcl.authenticate(context, DefaultProvider.DAPPER) { response -\u003e\n  System.out.println(response.address)\n}\n```\n\nThe `response` variable is of type `AuthnResponse`, which contains the user's wallet address:\n\n```kotlin\n/**\n * Authentication response\n * \n * @property [address] address of the authenticated account\n * @property [status] status of the authentication (approved or declined)\n * @property [reason] if authentication is declined this property will contain more description\n */\ndata class AuthnResponse(\n    val address: String?,\n    val status: ResponseStatus,\n    val reason: String?\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonflow%2Ffcl-auth-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonflow%2Ffcl-auth-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonflow%2Ffcl-auth-android/lists"}