Exemple #1
0
        public async Task <TokenEntity> GetToken()
        {
            var token = await this.secureStorage.Get <string>(StorageConstants.ACCESS_TOKEN);

            if (string.IsNullOrEmpty(token))
            {
                return(null);
            }

            var tokenDeserialized = TokenUtilities.DeserializeToken(token);

            return(tokenDeserialized);
        }
Exemple #2
0
 public TokenEntity DeserializeToken(string token)
 {
     return(TokenUtilities.DeserializeToken(token));
 }