flutter_robusta_auth

Last updated:

0 purchases

flutter_robusta_auth Image
flutter_robusta_auth Images
Add to Cart

Description:

flutter robusta auth

Flutter Robusta Auth #
Providing security features to manage authentication and authorization for current identity using apps.
Installing #
Install this package via pub command:
flutter pub add flutter_robusta_auth
copied to clipboard
Usages #
final runner = Runner(
extensions: [
FlutterAppExtension(routerSettings: RouterSettings()),
FlutterAuthExtension(
defineAccess: (definition) {
definition
..define('guest', (identity, [arg]) => null == identity)
..define('user', (identity, [arg]) => null != identity);
},
defineScreenAccess: (definition) {
definition.simpleDefine(
pattern: '/user',
abilities: ['user'],
fallbackLocation: '/guest',
);
},
identityProvider: (credentials, container) => Identity(
id: '1',
data: {},
),
),
],
);

Future<void> main() => runner.run();
copied to clipboard

License:

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

Files In This Product:

Customer Reviews

There are no reviews.