MCPcopy Create free account

hub / github.com/bogeychan/elysia-oauth2 / functions

Functions50 in github.com/bogeychan/elysia-oauth2

↓ 14 callersFunctionenv
(name: string)
src/utils/index.ts:3
↓ 12 callersMethodget
* Get token from storage
src/index.ts:67
↓ 7 callersFunctionuserPage
(user: {}, logout: string)
examples/sqlite.ts:106
↓ 4 callersFunctionoauth2
({ profiles: globalProfiles, state, login, authorized, logout, host, redirectTo, storage }: TPluginPar
src/index.ts:160
↓ 3 callersFunctionbuildRedirectUri
({ name }: TOAuth2Params)
src/index.ts:185
↓ 3 callersFunctionbuildUri
(template: string, name: string, external: boolean = true)
src/index.ts:180
↓ 3 callersFunctiongithub
({ login, allow_signup }: TGithubParams = {})
src/providers/github.ts:19
↓ 3 callersFunctionredirect
(location: string)
src/utils/index.ts:31
↓ 2 callersMethoddelete
* Delete token in storage (most likely a logout)
src/index.ts:74
↓ 1 callersFunctionazure
({ tenant, domain_hint, login_hint, prompt }: TAzureParams<Tenant, Prompt> = {})
src/providers/azure.ts:32
↓ 1 callersFunctionbuildUrl
( url: string, params: TOAuth2UrlParams, scope?: TOAuth2Scope )
src/utils/index.ts:13
↓ 1 callersFunctiondiscord
({ prompt }: TDiscordParams<Prompt> = {})
src/providers/discord.ts:14
↓ 1 callersFunctiongoogle
({ access_type, include_granted_scopes, login_hint, prompt }: TGoogleParams<AccessType, Prompt> = {})
src/providers/google.ts:26
↓ 1 callersFunctionisTokenValid
(token?: TOAuth2AccessToken)
src/utils/index.ts:39
↓ 1 callersFunctionloginPage
(login: string)
examples/with-plugin/index.tsx:78
↓ 1 callersFunctionmyGithub
()
examples/provider.ts:6
↓ 1 callersFunctionreddit
({ duration }: TRedditParams<Duration> = {})
src/providers/reddit.ts:11
↓ 1 callersMethodset
* Write token to storage (most likely a login)
src/index.ts:59
↓ 1 callersFunctionspotify
({ show_dialog }: TSpotifyParams = {})
src/providers/spotify.ts:14
↓ 1 callersFunctiontwitch
({ force_verify }: TTwitchParams = {})
src/providers/twitch.ts:76
↓ 1 callersFunctionuserPage
(user: {}, logout: string)
examples/provider.ts:58
↓ 1 callersFunctionuserPage
(user: {}, logout: string)
examples/simple.ts:39
↓ 1 callersFunctionuserPage
(user: {}, logout: string)
examples/with-plugin/index.tsx:88
↓ 1 callersFunctionvalidateToken
(headers: { Authorization: string })
src/providers/twitch.ts:45
Functionauthorized
(...profiles: Profiles[])
src/index.ts:319
Functioncheck
(ctx, name, state)
examples/provider.ts:38
Functioncheck
(ctx, name, state)
examples/sqlite.ts:62
Functioncheck
(ctx, name, state)
examples/simple.ts:19
Functioncheck
(ctx, name, state)
examples/with-plugin/index.tsx:38
Functiondelete
(ctx, name)
examples/provider.ts:52
Functiondelete
(ctx, name)
examples/sqlite.ts:100
Functiondelete
(ctx, name)
examples/simple.ts:33
Functiondelete
(ctx: InferContext<typeof app>, name)
examples/with-plugin/index.tsx:52
FunctiondeleteOAuthToken
(name: string)
examples/with-plugin/index.tsx:22
Functiongenerate
(ctx, name)
examples/provider.ts:41
Functiongenerate
(ctx, name)
examples/sqlite.ts:70
Functiongenerate
(ctx, name)
examples/simple.ts:22
Functiongenerate
(ctx, name)
examples/with-plugin/index.tsx:41
Functionget
(ctx, name)
examples/provider.ts:46
Functionget
(ctx, name)
examples/sqlite.ts:77
Functionget
(ctx, name)
examples/simple.ts:27
Functionget
(ctx: InferContext<typeof app>, name)
examples/with-plugin/index.tsx:46
FunctiongetOAuthToken
(name: string)
examples/with-plugin/index.tsx:16
Functionprofiles
(...profiles: P[])
src/index.ts:332
Functionset
(ctx, name, token)
examples/provider.ts:49
Functionset
(ctx, name, token)
examples/sqlite.ts:92
Functionset
(ctx, name, token)
examples/simple.ts:30
Functionset
(ctx: InferContext<typeof app>, name, token)
examples/with-plugin/index.tsx:49
FunctionsetOAuthToken
(name: string, token: TOAuth2AccessToken)
examples/with-plugin/index.tsx:19
FunctiontokenHeaders
(profile)
src/index.ts:350