public void Update(TokenUpdate response) { UserId = Convert.ToInt32(response.UserId); AuthenticationToken = response.AccessToken; RefreshToken = response.RefreshToken; Expires = response.ExpiresAt.DateTime; }
// Protected so that the token returned from registering can be pushed back through protected void UpdateAuth(TokenUpdate update) { CurrentAuth.Update(update); }