flutter_auth0_client 0.1.1 copy "flutter_auth0_client: ^0.1.1" to clipboard
flutter_auth0_client: ^0.1.1 copied to clipboard

outdated

Auth0 Client for iOS, Android, and Web.

flutter_auth0 #

Unofficial Auth0 SDK for flutter.

Getting Started #

iOS: #

  1. Pod install in iOS directory
  2. Add the following to info.plist:
<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>None</string>
        <key>CFBundleURLName</key>
        <string>auth0</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
        </array>
    </dict>
</array>

Android #

TODO

Web #

Add the following to index.html:

<script src="https://cdn.auth0.com/js/auth0-spa-js/1.12/auth0-spa-js.production.js"></script>

Note: Web only returns an access_token.

Login: #

final Auth0Credentials credentials = await FlutterAuth0.login(
    clientId: "{YOUR AUTH0 CLIENT ID}",
    domain: "{YOUR AUTH0 DOMAIN}",
    scope: "{SCOPES}"
);

Launches popup window on web. TODO: Add redirect functionality in web

Logout: #

TODO

7
likes
0
pub points
46%
popularity

Publisher

unverified uploader

Auth0 Client for iOS, Android, and Web.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

auth0_spa_dart, flutter, flutter_web_plugins

More

Packages that depend on flutter_auth0_client