interface TokenStorageManagementInterface

interface TokenStorageManagementInterface

Methods

bool
createOAuthSession(OAuthSession|null $session)

Creates and saves a new OAuth session

bool
getOAuthSession(string $sessionId, string $provider, OAuthSession|null $oauthSession)

Retrieves an OAuth session for a given provider

bool
saveOAuthSession(OAuthSession $session)

Saves a session for later use

Details

at line 19
bool createOAuthSession(OAuthSession|null $session)

Creates and saves a new OAuth session

Parameters

OAuthSession|null $session The variable receiving information about the new session

Return Value

bool true if the session is created, false if not

at line 29
bool getOAuthSession(string $sessionId, string $provider, OAuthSession|null $oauthSession)

Retrieves an OAuth session for a given provider

Parameters

string $sessionId The id of the session
string $provider The provider
OAuthSession|null $oauthSession The variable receiving information about the session

Return Value

bool

at line 37
bool saveOAuthSession(OAuthSession $session)

Saves a session for later use

Parameters

OAuthSession $session The information about the session

Return Value

bool true if the session is successfully saved, false otherwise