login_client

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

login client

login_client #



OAuth2 compliant login client that:

stores credentials for the currently authenticated user,
automatically refreshes tokens,
is easily pluggable into existing codebases.

Usage #
final loginClient = LoginClient(
oAuthSettings: OAuthSettings(
authorizationUri: apiUri.resolve('/auth'),
clientId: 'pl.leancode.sample_app',
),
credentialsStorage: const FlutterSecureCredentialsStorage(),
);

await loginClient.logIn(
// my secret pwd
ResourceOwnerPasswordStrategy('Albert221', 'ny4ncat'),
);

final response = await loginClient.get('/secret-stuff');
copied to clipboard
Flutter #
For Flutter implementation of the CredentialsStorage, check out login_client_flutter.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.