codeSignIn static method

Future<LKAccount?> codeSignIn({
  1. required String code,
  2. required String state,
})

Implementation

static Future<LKAccount?> codeSignIn(
    {required String code, required String state}) async {
  final token = await _token(code: code, state: state);
  await storage.write(key: storageKey, value: jsonEncode(token.toJson()));
  return await _account(token);
}