verifyAccessToken method

Future<AccessTokenVerifyResult> verifyAccessToken()

Checks whether the stored access token is valid against the LINE authentication server.

This method redirects calls to the LINE SDK for the relevant native platform (iOS or Android). If an error happens in the native platform, a PlatformException is thrown. See PlatformException.code and PlatformException.message for error details.

The LINE SDK implementation differs between iOS and Android, which means error codes and messages can also be different. For platform-specific error information, see LineSDKError (iOS) and LineApiError (Android).

Implementation

Future<AccessTokenVerifyResult> verifyAccessToken() async {
  return await channel
      .invokeMethod('verifyAccessToken')
      .then((value) => AccessTokenVerifyResult._(_decodeJson(value)));
}