aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Web/Authentication/TokensManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/Authentication/TokensManager.cs')
-rw-r--r--Software/Visual_Studio/Tango.Web/Authentication/TokensManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Web/Authentication/TokensManager.cs b/Software/Visual_Studio/Tango.Web/Authentication/TokensManager.cs
index 890d69d53..5829bfca3 100644
--- a/Software/Visual_Studio/Tango.Web/Authentication/TokensManager.cs
+++ b/Software/Visual_Studio/Tango.Web/Authentication/TokensManager.cs
@@ -48,8 +48,8 @@ namespace Tango.Web.Authentication
Value = tokenObject,
WebToken = new WebToken()
{
- AccessToken = token,
- Expiration = DateTime.UtcNow.Add(ExpirationTime)
+ //AccessToken = token,
+ //Expiration = DateTime.UtcNow.Add(ExpirationTime)
},
};
@@ -73,7 +73,7 @@ namespace Tango.Web.Authentication
if (DateTime.UtcNow > _tokens[token].WebToken.Expiration)
{
_tokens.Remove(token);
- throw new SessionExpiredException("Session Expired.");
+ throw new TokenExpiredException("Session Expired.");
}
return _tokens[token].Value;