getAccessToken method
Implementation
Future<AccessToken?> getAccessToken(
{String? resource, String? organizationId}) async {
final accessToken = await _tokenStorage.getAccessToken(
resource: resource, organizationId: organizationId);
if (accessToken != null) {
return accessToken;
}
final token = await _getAccessTokenByRefreshToken(
resource: resource, organizationId: organizationId);
return token;
}