Table of Contents

Class OAuth

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

Methods

LoginDeviceFlowAsync(OAuthProvider, CancellationToken)

public static UniTask<OAuthToken> LoginDeviceFlowAsync(this OAuthProvider provider, CancellationToken ct = default)

Parameters

provider OAuthProvider
ct CancellationToken

Returns

UniTask<OAuthToken>

LoginPkceAsync(OAuthProvider, CancellationToken)

public static UniTask<OAuthToken> LoginPkceAsync(this OAuthProvider provider, CancellationToken ct = default)

Parameters

provider OAuthProvider
ct CancellationToken

Returns

UniTask<OAuthToken>

RefreshTokenAsync(OAuthProvider, string, CancellationToken)

public static UniTask<OAuthToken> RefreshTokenAsync(this OAuthProvider provider, string refreshToken, CancellationToken ct = default)

Parameters

provider OAuthProvider
refreshToken string
ct CancellationToken

Returns

UniTask<OAuthToken>

RevokeTokenAsync(OAuthProvider, string, CancellationToken)

public static UniTask RevokeTokenAsync(this OAuthProvider provider, string token, CancellationToken ct = default)

Parameters

provider OAuthProvider
token string
ct CancellationToken

Returns

UniTask