getUserProfile method

  1. @override
Future getUserProfile()
override

Fetches authenticated user profile claims.

Implementation

@override
Future<dynamic> getUserProfile() async {
  if (isInitialized) {
    final userProfile =
        await methodChannel.invokeMethod<dynamic>('get-user-profile');
    return userProfile;
  } else {
    throw FlutterError('Okta not initialized');
  }
}