five-on-it / apps/api/src/oauth / OAuthContext
Interface: OAuthContext
Defined in: apps/api/src/oauth.ts:52
What the routes need.
Properties
auth
auth:
Auth
Defined in: apps/api/src/oauth.ts:56
The accounts: the sign-in page signs in with them, the access tokens are theirs.
email?
optionalemail?:boolean
Defined in: apps/api/src/oauth.ts:62
Whether creators may sign in with an e-mail and a password (not on a platform for the game's owners).
issuer
issuer:
string
Defined in: apps/api/src/oauth.ts:58
The issuer: the platform's public address, the endpoints under it (FOI_PUBLIC_URL).
now
now: () =>
Date
Defined in: apps/api/src/oauth.ts:60
The clock.
Returns
Date
steam?
optionalsteam?:SteamSignIn
Defined in: apps/api/src/oauth.ts:64
Signing in through Steam's OpenID, where Steam is on.
store
store:
Store
Defined in: apps/api/src/oauth.ts:54
Where clients, codes, grants and refresh tokens are kept.