Last updated:
0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.