getUserId static method

Future<String> getUserId()

Implementation

static Future<String> getUserId() async {
  Map<String, dynamic>? frontToken = await FrontToken.getToken();
  if (frontToken == null)
    throw SuperTokensException("Session does not exist");
  return frontToken['uid'] as String;
}