INNER CODE UNIT · Dart

SimpleAuthFlutter

Clancey/simple_auth · simple_auth_flutter/lib/simple_auth_flutter.dart:8

class SimpleAuthFlutter implements simpleAuth.AuthStorage {
  static const MethodChannel _channel =
      const MethodChannel('simple_auth_flutter/showAuthenticator');
  static const EventChannel _eventChannel =
      const EventChannel('simple_auth_flutter/urlChanged');

//Gets the current platform version
  static Future<String?> get platformVersion async {
    final String? version = await _channel.invokeMethod("getPlatformVersion");
    return version;
  }

//The map of all the currently in use authenticators
  static Map<String, simpleAuth.WebAuthenticator> authenticators = {};
  static Future showAuthenticator(
      simpleAuth.WebAuthenticator authenticator) async {
    if (authenticator.redirectUrl == null) {
      authenticator.onError("redirectUrl cannot be null");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…