getCode method

  1. @override
Future<AuthCodeMap> getCode()
override

Method for obtaining a new user auth code. First step of token creation.

Implementation

@override
Future<AuthCodeMap> getCode() async {
  final codeResponse = await _sendRequest(OAUTH_CODE_URL, {
    'scope': OAUTH_SCOPE,
  });
  return AuthCodeMap.fromJson(codeResponse);
}