Class OAuthCredentials
Represents credentials for a user.
This is saved in player pref under !:KEY_CREDENTIALS
+ user ID.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StreamSIX.Auth
Assembly: cs.temp.dll.dll
Syntax
[Serializable]public class OAuthCredentials
Fields
AccessToken
Declaration
public string AccessToken
Field Value
Type | Description |
---|---|
System.String |
AccessTokenDecoded
Declaration
public AccessToken AccessTokenDecoded
Field Value
Type | Description |
---|---|
AccessToken |
ExpiresIn
Declaration
public long ExpiresIn
Field Value
Type | Description |
---|---|
System.Int64 |
NotBeforePolicy
Declaration
public int NotBeforePolicy
Field Value
Type | Description |
---|---|
System.Int32 |
RefreshExpiresIn
Declaration
public long RefreshExpiresIn
Field Value
Type | Description |
---|---|
System.Int64 |
RefreshToken
Declaration
public string RefreshToken
Field Value
Type | Description |
---|---|
System.String |
RefreshTokenDecoded
Declaration
public RefreshToken RefreshTokenDecoded
Field Value
Type | Description |
---|---|
RefreshToken |
Scope
Declaration
public string Scope
Field Value
Type | Description |
---|---|
System.String |
SessionState
Declaration
public string SessionState
Field Value
Type | Description |
---|---|
System.String |
TokenType
Declaration
public string TokenType
Field Value
Type | Description |
---|---|
System.String |
Methods
Exists(String)
Checks for an existing saved credential
Declaration
public static bool Exists(string uid)
Parameters
Type | Name | Description |
---|---|---|
System.String | uid | user id |
Returns
Type | Description |
---|---|
System.Boolean | true if exists |
IsExpired()
Checks if this credential is expired
Declaration
public bool IsExpired()
Returns
Type | Description |
---|---|
System.Boolean | true if expired |
IsExpiringSoon()
Checks if this credential is almost expired
Declaration
public bool IsExpiringSoon()
Returns
Type | Description |
---|---|
System.Boolean | true if almost expired |