Table of Contents

Class OAuthTokenUtil

Namespace
Glitch9.AIDevKit.Auth
public static class OAuthTokenUtil
Inheritance
object
OAuthTokenUtil

Methods

GetFromPlayerPrefs(string)

public static OAuthToken GetFromPlayerPrefs(string key)

Parameters

key string

Returns

OAuthToken

IsExpired(OAuthToken)

public static bool IsExpired(this OAuthToken t)

Parameters

t OAuthToken

Returns

bool

IsExpiredSoon(OAuthToken, int)

public static bool IsExpiredSoon(this OAuthToken t, int skewSec = 60)

Parameters

t OAuthToken
skewSec int

Returns

bool

ReadTokenFromFile(string)

public static OAuthToken ReadTokenFromFile(string filePath)

Parameters

filePath string

Returns

OAuthToken

SetToPlayerPrefs(OAuthToken, string)

public static void SetToPlayerPrefs(this OAuthToken t, string key = null)

Parameters

t OAuthToken
key string

WriteTokenToFile(OAuthToken, string)

public static void WriteTokenToFile(this OAuthToken t, string filePath)

Parameters

t OAuthToken
filePath string