1111
This commit is contained in:
@@ -2,6 +2,15 @@
|
||||
{
|
||||
public class StateHelper
|
||||
{
|
||||
public static bool isOnline
|
||||
{
|
||||
get
|
||||
{
|
||||
var token = App.HttpContext.GetTokenInfo();
|
||||
return token != null;
|
||||
}
|
||||
}
|
||||
|
||||
public static string userId
|
||||
{
|
||||
get {
|
||||
@@ -14,7 +23,7 @@
|
||||
get
|
||||
{
|
||||
var token = App.HttpContext.GetTokenInfo();
|
||||
return token.Claims["sid"];
|
||||
return token.Claims["token"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user