Class OAuthCredentials

Represents credentials for a user. This is saved in player pref under !:KEY_CREDENTIALS + user ID.

Inheritance

System.Object
OAuthCredentials

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

TypeDescription
System.String

AccessTokenDecoded

Declaration

public AccessToken AccessTokenDecoded

Field Value

TypeDescription
AccessToken

ExpiresIn

Declaration

public long ExpiresIn

Field Value

TypeDescription
System.Int64

NotBeforePolicy

Declaration

public int NotBeforePolicy

Field Value

TypeDescription
System.Int32

RefreshExpiresIn

Declaration

public long RefreshExpiresIn

Field Value

TypeDescription
System.Int64

RefreshToken

Declaration

public string RefreshToken

Field Value

TypeDescription
System.String

RefreshTokenDecoded

Declaration

public RefreshToken RefreshTokenDecoded

Field Value

TypeDescription
RefreshToken

Scope

Declaration

public string Scope

Field Value

TypeDescription
System.String

SessionState

Declaration

public string SessionState

Field Value

TypeDescription
System.String

TokenType

Declaration

public string TokenType

Field Value

TypeDescription
System.String

Methods

Exists(String)

Checks for an existing saved credential

Declaration

public static bool Exists(string uid)

Parameters

TypeNameDescription
System.Stringuid

user id

Returns

TypeDescription
System.Boolean

true if exists

IsExpired()

Checks if this credential is expired

Declaration

public bool IsExpired()

Returns

TypeDescription
System.Boolean

true if expired

IsExpiringSoon()

Checks if this credential is almost expired

Declaration

public bool IsExpiringSoon()

Returns

TypeDescription
System.Boolean

true if almost expired