mirror of
				https://github.com/Dan6erbond/sk-auth.git
				synced 2025-10-26 10:22:56 +01:00 
			
		
		
		
	adding dist for github distribution
This commit is contained in:
		
							parent
							
								
									dfcd60768a
								
							
						
					
					
						commit
						143a6e3c4a
					
				
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -76,4 +76,4 @@ typings/ | ||||
| .fusebox/ | ||||
| 
 | ||||
| # Build output | ||||
| dist/* | ||||
| #dist/* | ||||
|  | ||||
							
								
								
									
										39
									
								
								dist/auth.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								dist/auth.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,39 @@ | ||||
| import type { GetSession, RequestHandler } from "@sveltejs/kit"; | ||||
| import type { EndpointOutput } from "@sveltejs/kit/types/endpoint"; | ||||
| import { RequestEvent } from "@sveltejs/kit/types/hooks"; | ||||
| import type { JWT, Session } from "./interfaces"; | ||||
| import type { Provider } from "./providers"; | ||||
| interface AuthConfig { | ||||
|     providers: Provider[]; | ||||
|     callbacks?: AuthCallbacks; | ||||
|     jwtSecret?: string; | ||||
|     jwtExpiresIn?: string | number; | ||||
|     host?: string; | ||||
|     protocol?: string; | ||||
|     basePath?: string; | ||||
| } | ||||
| interface AuthCallbacks { | ||||
|     signIn?: () => boolean | Promise<boolean>; | ||||
|     jwt?: (token: JWT, profile?: any) => JWT | Promise<JWT>; | ||||
|     session?: (token: JWT, session: Session) => Session | Promise<Session>; | ||||
|     redirect?: (url: string) => string | Promise<string>; | ||||
| } | ||||
| export declare class Auth { | ||||
|     private readonly config?; | ||||
|     constructor(config?: AuthConfig | undefined); | ||||
|     get basePath(): string; | ||||
|     getJwtSecret(): string; | ||||
|     getToken(headers: any): Promise<JWT | null>; | ||||
|     getBaseUrl(host?: string): string; | ||||
|     getPath(path: string): string; | ||||
|     getUrl(path: string, host?: string): string; | ||||
|     setToken(headers: any, newToken: JWT | any): any; | ||||
|     signToken(token: JWT): string; | ||||
|     getRedirectUrl(host: string, redirectUrl?: string): Promise<string>; | ||||
|     handleProviderCallback(event: RequestEvent, provider: Provider): Promise<EndpointOutput>; | ||||
|     handleEndpoint(event: RequestEvent): Promise<EndpointOutput>; | ||||
|     get: RequestHandler; | ||||
|     post: RequestHandler; | ||||
|     getSession: GetSession; | ||||
| } | ||||
| export {}; | ||||
							
								
								
									
										168
									
								
								dist/auth.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										168
									
								
								dist/auth.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,168 @@ | ||||
| import cookie from 'cookie'; | ||||
| import * as jsonwebtoken from 'jsonwebtoken'; | ||||
| import { join } from './path.esm.js'; | ||||
| 
 | ||||
| class Auth { | ||||
|   constructor(config) { | ||||
|     this.config = config; | ||||
|     this.get = async (event) => { | ||||
|       const { url } = event; | ||||
|       if (url.pathname === this.getPath("csrf")) { | ||||
|         return { body: "1234" }; | ||||
|       } else if (url.pathname === this.getPath("session")) { | ||||
|         const session = await this.getSession(event); | ||||
|         return { | ||||
|           body: { | ||||
|             session | ||||
|           } | ||||
|         }; | ||||
|       } | ||||
|       return await this.handleEndpoint(event); | ||||
|     }; | ||||
|     this.post = async (event) => { | ||||
|       return await this.handleEndpoint(event); | ||||
|     }; | ||||
|     this.getSession = async (event) => { | ||||
|       const { request } = event; | ||||
|       const token = await this.getToken(request.headers); | ||||
|       if (token) { | ||||
|         if (this.config?.callbacks?.session) { | ||||
|           return await this.config.callbacks.session(token, { user: token.user }); | ||||
|         } | ||||
|         return { user: token.user }; | ||||
|       } | ||||
|       return {}; | ||||
|     }; | ||||
|   } | ||||
|   get basePath() { | ||||
|     return this.config?.basePath ?? "/api/auth"; | ||||
|   } | ||||
|   getJwtSecret() { | ||||
|     if (this.config?.jwtSecret) { | ||||
|       return this.config?.jwtSecret; | ||||
|     } | ||||
|     if (this.config?.providers?.length) { | ||||
|       const provs = this.config?.providers?.map((provider) => provider.id).join("+"); | ||||
|       return Buffer.from(provs).toString("base64"); | ||||
|     } | ||||
|     return "svelte_auth_secret"; | ||||
|   } | ||||
|   async getToken(headers) { | ||||
|     if (!headers.cookie) { | ||||
|       return null; | ||||
|     } | ||||
|     const cookies = cookie.parse(headers.cookie); | ||||
|     if (!cookies.svelteauthjwt) { | ||||
|       return null; | ||||
|     } | ||||
|     let token; | ||||
|     try { | ||||
|       token = jsonwebtoken.verify(cookies.svelteauthjwt, this.getJwtSecret()) || {}; | ||||
|     } catch { | ||||
|       return null; | ||||
|     } | ||||
|     if (this.config?.callbacks?.jwt) { | ||||
|       token = await this.config.callbacks.jwt(token); | ||||
|     } | ||||
|     return token; | ||||
|   } | ||||
|   getBaseUrl(host) { | ||||
|     const protocol = this.config?.protocol ?? "http"; | ||||
|     host = this.config?.host ?? host; | ||||
|     return `${protocol}://${host}`; | ||||
|   } | ||||
|   getPath(path) { | ||||
|     const pathname = join([this.basePath, path]); | ||||
|     return pathname; | ||||
|   } | ||||
|   getUrl(path, host) { | ||||
|     const pathname = this.getPath(path); | ||||
|     return new URL(pathname, this.getBaseUrl(host)).href; | ||||
|   } | ||||
|   setToken(headers, newToken) { | ||||
|     const originalToken = this.getToken(headers); | ||||
|     return { | ||||
|       ...originalToken ?? {}, | ||||
|       ...newToken | ||||
|     }; | ||||
|   } | ||||
|   signToken(token) { | ||||
|     const opts = !token.exp ? { | ||||
|       expiresIn: this.config?.jwtExpiresIn ?? "30d" | ||||
|     } : {}; | ||||
|     const jwt = jsonwebtoken.sign(token, this.getJwtSecret(), opts); | ||||
|     return jwt; | ||||
|   } | ||||
|   async getRedirectUrl(host, redirectUrl) { | ||||
|     let redirect = redirectUrl || this.getBaseUrl(host); | ||||
|     if (this.config?.callbacks?.redirect) { | ||||
|       redirect = await this.config.callbacks.redirect(redirect); | ||||
|     } | ||||
|     return redirect; | ||||
|   } | ||||
|   async handleProviderCallback(event, provider) { | ||||
|     const { headers } = event.request; | ||||
|     const { url } = event; | ||||
|     const [profile, redirectUrl] = await provider.callback(event, this); | ||||
|     let token = await this.getToken(headers) ?? { user: {} }; | ||||
|     if (this.config?.callbacks?.jwt) { | ||||
|       token = await this.config.callbacks.jwt(token, profile); | ||||
|     } else { | ||||
|       token = this.setToken(headers, { user: profile }); | ||||
|     } | ||||
|     const jwt = this.signToken(token); | ||||
|     const redirect = await this.getRedirectUrl(url.host, redirectUrl ?? void 0); | ||||
|     return { | ||||
|       status: 302, | ||||
|       headers: { | ||||
|         "set-cookie": `svelteauthjwt=${jwt}; Path=/; HttpOnly`, | ||||
|         Location: redirect | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|   async handleEndpoint(event) { | ||||
|     const { headers, method } = event.request; | ||||
|     const { url } = event; | ||||
|     if (url.pathname === this.getPath("signout")) { | ||||
|       const token = this.setToken(event.request.headers, {}); | ||||
|       const jwt = this.signToken(token); | ||||
|       if (method === "POST") { | ||||
|         return { | ||||
|           headers: { | ||||
|             "set-cookie": `svelteauthjwt=${jwt}; Path=/; HttpOnly` | ||||
|           }, | ||||
|           body: { | ||||
|             signout: true | ||||
|           } | ||||
|         }; | ||||
|       } | ||||
|       const redirect = await this.getRedirectUrl(url.host); | ||||
|       return { | ||||
|         status: 302, | ||||
|         headers: { | ||||
|           "set-cookie": `svelteauthjwt=${jwt}; Path=/; HttpOnly`, | ||||
|           Location: redirect | ||||
|         } | ||||
|       }; | ||||
|     } | ||||
|     const regex = new RegExp(join([this.basePath, `(?<method>signin|callback)/(?<provider>\\w+)`])); | ||||
|     const match = url.pathname.match(regex); | ||||
|     if (match && match.groups) { | ||||
|       const provider = this.config?.providers?.find((provider2) => provider2.id === match.groups.provider); | ||||
|       if (provider) { | ||||
|         if (match.groups.method === "signin") { | ||||
|           return await provider.signin(event, this); | ||||
|         } else { | ||||
|           return await this.handleProviderCallback(event, provider); | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|     return { | ||||
|       status: 404, | ||||
|       body: "Not found." | ||||
|     }; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| export { Auth }; | ||||
| //# sourceMappingURL=auth.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/auth.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/auth.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										195
									
								
								dist/auth.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										195
									
								
								dist/auth.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,195 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| var cookie = require('cookie'); | ||||
| var jsonwebtoken = require('jsonwebtoken'); | ||||
| var path = require('./path.js'); | ||||
| 
 | ||||
| function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||||
| 
 | ||||
| function _interopNamespace(e) { | ||||
|     if (e && e.__esModule) return e; | ||||
|     var n = Object.create(null); | ||||
|     if (e) { | ||||
|         Object.keys(e).forEach(function (k) { | ||||
|             if (k !== 'default') { | ||||
|                 var d = Object.getOwnPropertyDescriptor(e, k); | ||||
|                 Object.defineProperty(n, k, d.get ? d : { | ||||
|                     enumerable: true, | ||||
|                     get: function () { return e[k]; } | ||||
|                 }); | ||||
|             } | ||||
|         }); | ||||
|     } | ||||
|     n["default"] = e; | ||||
|     return Object.freeze(n); | ||||
| } | ||||
| 
 | ||||
| var cookie__default = /*#__PURE__*/_interopDefaultLegacy(cookie); | ||||
| var jsonwebtoken__namespace = /*#__PURE__*/_interopNamespace(jsonwebtoken); | ||||
| 
 | ||||
| class Auth { | ||||
|   constructor(config) { | ||||
|     this.config = config; | ||||
|     this.get = async (event) => { | ||||
|       const { url } = event; | ||||
|       if (url.pathname === this.getPath("csrf")) { | ||||
|         return { body: "1234" }; | ||||
|       } else if (url.pathname === this.getPath("session")) { | ||||
|         const session = await this.getSession(event); | ||||
|         return { | ||||
|           body: { | ||||
|             session | ||||
|           } | ||||
|         }; | ||||
|       } | ||||
|       return await this.handleEndpoint(event); | ||||
|     }; | ||||
|     this.post = async (event) => { | ||||
|       return await this.handleEndpoint(event); | ||||
|     }; | ||||
|     this.getSession = async (event) => { | ||||
|       const { request } = event; | ||||
|       const token = await this.getToken(request.headers); | ||||
|       if (token) { | ||||
|         if (this.config?.callbacks?.session) { | ||||
|           return await this.config.callbacks.session(token, { user: token.user }); | ||||
|         } | ||||
|         return { user: token.user }; | ||||
|       } | ||||
|       return {}; | ||||
|     }; | ||||
|   } | ||||
|   get basePath() { | ||||
|     return this.config?.basePath ?? "/api/auth"; | ||||
|   } | ||||
|   getJwtSecret() { | ||||
|     if (this.config?.jwtSecret) { | ||||
|       return this.config?.jwtSecret; | ||||
|     } | ||||
|     if (this.config?.providers?.length) { | ||||
|       const provs = this.config?.providers?.map((provider) => provider.id).join("+"); | ||||
|       return Buffer.from(provs).toString("base64"); | ||||
|     } | ||||
|     return "svelte_auth_secret"; | ||||
|   } | ||||
|   async getToken(headers) { | ||||
|     if (!headers.cookie) { | ||||
|       return null; | ||||
|     } | ||||
|     const cookies = cookie__default["default"].parse(headers.cookie); | ||||
|     if (!cookies.svelteauthjwt) { | ||||
|       return null; | ||||
|     } | ||||
|     let token; | ||||
|     try { | ||||
|       token = jsonwebtoken__namespace.verify(cookies.svelteauthjwt, this.getJwtSecret()) || {}; | ||||
|     } catch { | ||||
|       return null; | ||||
|     } | ||||
|     if (this.config?.callbacks?.jwt) { | ||||
|       token = await this.config.callbacks.jwt(token); | ||||
|     } | ||||
|     return token; | ||||
|   } | ||||
|   getBaseUrl(host) { | ||||
|     const protocol = this.config?.protocol ?? "http"; | ||||
|     host = this.config?.host ?? host; | ||||
|     return `${protocol}://${host}`; | ||||
|   } | ||||
|   getPath(path$1) { | ||||
|     const pathname = path.join([this.basePath, path$1]); | ||||
|     return pathname; | ||||
|   } | ||||
|   getUrl(path, host) { | ||||
|     const pathname = this.getPath(path); | ||||
|     return new URL(pathname, this.getBaseUrl(host)).href; | ||||
|   } | ||||
|   setToken(headers, newToken) { | ||||
|     const originalToken = this.getToken(headers); | ||||
|     return { | ||||
|       ...originalToken ?? {}, | ||||
|       ...newToken | ||||
|     }; | ||||
|   } | ||||
|   signToken(token) { | ||||
|     const opts = !token.exp ? { | ||||
|       expiresIn: this.config?.jwtExpiresIn ?? "30d" | ||||
|     } : {}; | ||||
|     const jwt = jsonwebtoken__namespace.sign(token, this.getJwtSecret(), opts); | ||||
|     return jwt; | ||||
|   } | ||||
|   async getRedirectUrl(host, redirectUrl) { | ||||
|     let redirect = redirectUrl || this.getBaseUrl(host); | ||||
|     if (this.config?.callbacks?.redirect) { | ||||
|       redirect = await this.config.callbacks.redirect(redirect); | ||||
|     } | ||||
|     return redirect; | ||||
|   } | ||||
|   async handleProviderCallback(event, provider) { | ||||
|     const { headers } = event.request; | ||||
|     const { url } = event; | ||||
|     const [profile, redirectUrl] = await provider.callback(event, this); | ||||
|     let token = await this.getToken(headers) ?? { user: {} }; | ||||
|     if (this.config?.callbacks?.jwt) { | ||||
|       token = await this.config.callbacks.jwt(token, profile); | ||||
|     } else { | ||||
|       token = this.setToken(headers, { user: profile }); | ||||
|     } | ||||
|     const jwt = this.signToken(token); | ||||
|     const redirect = await this.getRedirectUrl(url.host, redirectUrl ?? void 0); | ||||
|     return { | ||||
|       status: 302, | ||||
|       headers: { | ||||
|         "set-cookie": `svelteauthjwt=${jwt}; Path=/; HttpOnly`, | ||||
|         Location: redirect | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|   async handleEndpoint(event) { | ||||
|     const { headers, method } = event.request; | ||||
|     const { url } = event; | ||||
|     if (url.pathname === this.getPath("signout")) { | ||||
|       const token = this.setToken(event.request.headers, {}); | ||||
|       const jwt = this.signToken(token); | ||||
|       if (method === "POST") { | ||||
|         return { | ||||
|           headers: { | ||||
|             "set-cookie": `svelteauthjwt=${jwt}; Path=/; HttpOnly` | ||||
|           }, | ||||
|           body: { | ||||
|             signout: true | ||||
|           } | ||||
|         }; | ||||
|       } | ||||
|       const redirect = await this.getRedirectUrl(url.host); | ||||
|       return { | ||||
|         status: 302, | ||||
|         headers: { | ||||
|           "set-cookie": `svelteauthjwt=${jwt}; Path=/; HttpOnly`, | ||||
|           Location: redirect | ||||
|         } | ||||
|       }; | ||||
|     } | ||||
|     const regex = new RegExp(path.join([this.basePath, `(?<method>signin|callback)/(?<provider>\\w+)`])); | ||||
|     const match = url.pathname.match(regex); | ||||
|     if (match && match.groups) { | ||||
|       const provider = this.config?.providers?.find((provider2) => provider2.id === match.groups.provider); | ||||
|       if (provider) { | ||||
|         if (match.groups.method === "signin") { | ||||
|           return await provider.signin(event, this); | ||||
|         } else { | ||||
|           return await this.handleProviderCallback(event, provider); | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|     return { | ||||
|       status: 404, | ||||
|       body: "Not found." | ||||
|     }; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| exports.Auth = Auth; | ||||
| //# sourceMappingURL=auth.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/auth.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/auth.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								dist/client/helpers.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/helpers.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| declare function mergePath(basePaths: (string | null)[], path: string): any; | ||||
							
								
								
									
										2
									
								
								dist/client/helpers.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								dist/client/helpers.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| 
 | ||||
| //# sourceMappingURL=helpers.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/helpers.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/helpers.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"helpers.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} | ||||
							
								
								
									
										3
									
								
								dist/client/helpers.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								dist/client/helpers.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| //# sourceMappingURL=helpers.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/helpers.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/helpers.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"helpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"} | ||||
							
								
								
									
										2
									
								
								dist/client/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								dist/client/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| export { signIn } from "./signIn"; | ||||
| export { signOut } from "./signOut"; | ||||
							
								
								
									
										3
									
								
								dist/client/index.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								dist/client/index.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| export { signIn } from './signIn.esm.js'; | ||||
| export { signOut } from './signOut.esm.js'; | ||||
| //# sourceMappingURL=index.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/index.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/index.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"} | ||||
							
								
								
									
										12
									
								
								dist/client/index.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								dist/client/index.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| var client_signIn = require('./signIn.js'); | ||||
| var client_signOut = require('./signOut.js'); | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| exports.signIn = client_signIn.signIn; | ||||
| exports.signOut = client_signOut.signOut; | ||||
| //# sourceMappingURL=index.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/index.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/index.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"} | ||||
							
								
								
									
										6
									
								
								dist/client/signIn.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								dist/client/signIn.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| import type { ClientRequestConfig } from "./types"; | ||||
| interface SignInConfig extends ClientRequestConfig { | ||||
|     redirectUrl?: string; | ||||
| } | ||||
| export declare function signIn(provider: string, data?: any, config?: SignInConfig): Promise<any>; | ||||
| export {}; | ||||
							
								
								
									
										26
									
								
								dist/client/signIn.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								dist/client/signIn.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,26 @@ | ||||
| async function signIn(provider, data, config) { | ||||
|   if (data) { | ||||
|     const path2 = mergePath(["/api/auth", config?.basePath ?? null], `/callback/${provider}`); | ||||
|     const res = await fetch(path2, { | ||||
|       method: "POST", | ||||
|       headers: { | ||||
|         "Content-Type": "application/json" | ||||
|       }, | ||||
|       body: JSON.stringify(data) | ||||
|     }); | ||||
|     return await res.json(); | ||||
|   } | ||||
|   let redirectUrl; | ||||
|   if (config?.redirectUrl) { | ||||
|     redirectUrl = config.redirectUrl; | ||||
|   } | ||||
|   const queryData = { | ||||
|     redirect: redirectUrl ?? "/" | ||||
|   }; | ||||
|   const query = new URLSearchParams(queryData); | ||||
|   const path = mergePath(["/api/auth", config?.basePath ?? null], `/signin/${provider}?${query}`); | ||||
|   return path; | ||||
| } | ||||
| 
 | ||||
| export { signIn }; | ||||
| //# sourceMappingURL=signIn.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/signIn.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/signIn.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"signIn.esm.js","sources":["../../src/client/signIn.ts"],"sourcesContent":["export async function signIn(provider, data, config) {\r\n    if (data) {\r\n        const path = mergePath([\"/api/auth\", config?.basePath ?? null], `/callback/${provider}`);\r\n        const res = await fetch(path, {\r\n            method: \"POST\",\r\n            headers: {\r\n                \"Content-Type\": \"application/json\",\r\n            },\r\n            body: JSON.stringify(data),\r\n        });\r\n        return await res.json();\r\n    }\r\n    let redirectUrl;\r\n    if (config?.redirectUrl) {\r\n        redirectUrl = config.redirectUrl;\r\n    }\r\n    else {\r\n        let $val;\r\n        if ($val) {\r\n            redirectUrl = `${$val.url.host}${$val.url.pathname}?${$val.url.searchParams}`;\r\n        }\r\n    }\r\n    const queryData = {\r\n        redirect: redirectUrl ?? \"/\",\r\n    };\r\n    const query = new URLSearchParams(queryData);\r\n    const path = mergePath([\"/api/auth\", config?.basePath ?? null], `/signin/${provider}?${query}`);\r\n    return path;\r\n}\r\n"],"names":[],"mappings":"sBAA6B,UAAU,MAAM,QAAQ;AACjD,MAAI,MAAM;AACN,UAAM,QAAO,UAAU,CAAC,aAAa,QAAQ,YAAY,OAAO,aAAa;AAC7E,UAAM,MAAM,MAAM,MAAM,OAAM;AAAA,MAC1B,QAAQ;AAAA,MACR,SAAS;AAAA,QACL,gBAAgB;AAAA;AAAA,MAEpB,MAAM,KAAK,UAAU;AAAA;AAEzB,WAAO,MAAM,IAAI;AAAA;AAErB,MAAI;AACJ,MAAI,QAAQ,aAAa;AACrB,kBAAc,OAAO;AAAA;AAQzB,QAAM,YAAY;AAAA,IACd,UAAU,eAAe;AAAA;AAE7B,QAAM,QAAQ,IAAI,gBAAgB;AAClC,QAAM,OAAO,UAAU,CAAC,aAAa,QAAQ,YAAY,OAAO,WAAW,YAAY;AACvF,SAAO;AAAA;;;;"} | ||||
							
								
								
									
										30
									
								
								dist/client/signIn.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								dist/client/signIn.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| async function signIn(provider, data, config) { | ||||
|   if (data) { | ||||
|     const path2 = mergePath(["/api/auth", config?.basePath ?? null], `/callback/${provider}`); | ||||
|     const res = await fetch(path2, { | ||||
|       method: "POST", | ||||
|       headers: { | ||||
|         "Content-Type": "application/json" | ||||
|       }, | ||||
|       body: JSON.stringify(data) | ||||
|     }); | ||||
|     return await res.json(); | ||||
|   } | ||||
|   let redirectUrl; | ||||
|   if (config?.redirectUrl) { | ||||
|     redirectUrl = config.redirectUrl; | ||||
|   } | ||||
|   const queryData = { | ||||
|     redirect: redirectUrl ?? "/" | ||||
|   }; | ||||
|   const query = new URLSearchParams(queryData); | ||||
|   const path = mergePath(["/api/auth", config?.basePath ?? null], `/signin/${provider}?${query}`); | ||||
|   return path; | ||||
| } | ||||
| 
 | ||||
| exports.signIn = signIn; | ||||
| //# sourceMappingURL=signIn.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/signIn.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/signIn.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"signIn.js","sources":["../../src/client/signIn.ts"],"sourcesContent":["export async function signIn(provider, data, config) {\r\n    if (data) {\r\n        const path = mergePath([\"/api/auth\", config?.basePath ?? null], `/callback/${provider}`);\r\n        const res = await fetch(path, {\r\n            method: \"POST\",\r\n            headers: {\r\n                \"Content-Type\": \"application/json\",\r\n            },\r\n            body: JSON.stringify(data),\r\n        });\r\n        return await res.json();\r\n    }\r\n    let redirectUrl;\r\n    if (config?.redirectUrl) {\r\n        redirectUrl = config.redirectUrl;\r\n    }\r\n    else {\r\n        let $val;\r\n        if ($val) {\r\n            redirectUrl = `${$val.url.host}${$val.url.pathname}?${$val.url.searchParams}`;\r\n        }\r\n    }\r\n    const queryData = {\r\n        redirect: redirectUrl ?? \"/\",\r\n    };\r\n    const query = new URLSearchParams(queryData);\r\n    const path = mergePath([\"/api/auth\", config?.basePath ?? null], `/signin/${provider}?${query}`);\r\n    return path;\r\n}\r\n"],"names":[],"mappings":";;;;sBAA6B,UAAU,MAAM,QAAQ;AACjD,MAAI,MAAM;AACN,UAAM,QAAO,UAAU,CAAC,aAAa,QAAQ,YAAY,OAAO,aAAa;AAC7E,UAAM,MAAM,MAAM,MAAM,OAAM;AAAA,MAC1B,QAAQ;AAAA,MACR,SAAS;AAAA,QACL,gBAAgB;AAAA;AAAA,MAEpB,MAAM,KAAK,UAAU;AAAA;AAEzB,WAAO,MAAM,IAAI;AAAA;AAErB,MAAI;AACJ,MAAI,QAAQ,aAAa;AACrB,kBAAc,OAAO;AAAA;AAQzB,QAAM,YAAY;AAAA,IACd,UAAU,eAAe;AAAA;AAE7B,QAAM,QAAQ,IAAI,gBAAgB;AAClC,QAAM,OAAO,UAAU,CAAC,aAAa,QAAQ,YAAY,OAAO,WAAW,YAAY;AACvF,SAAO;AAAA;;;;"} | ||||
							
								
								
									
										2
									
								
								dist/client/signOut.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								dist/client/signOut.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| import type { ClientRequestConfig } from "./types"; | ||||
| export declare function signOut(config?: ClientRequestConfig): Promise<any>; | ||||
							
								
								
									
										15
									
								
								dist/client/signOut.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								dist/client/signOut.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| async function signOut(config) { | ||||
|   let res = await fetch(mergePath(["/api/auth", config?.basePath ?? null], "signout"), { | ||||
|     method: "POST" | ||||
|   }); | ||||
|   const { signout } = await res.json(); | ||||
|   if (!signout) { | ||||
|     throw new Error("Sign out not successful!"); | ||||
|   } | ||||
|   res = await fetch(mergePath(["/api/auth", config?.basePath ?? null], "session")); | ||||
|   const session = await res.json(); | ||||
|   return session; | ||||
| } | ||||
| 
 | ||||
| export { signOut }; | ||||
| //# sourceMappingURL=signOut.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/signOut.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/signOut.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"signOut.esm.js","sources":["../../src/client/signOut.ts"],"sourcesContent":["export async function signOut(config) {\r\n    let res = await fetch(mergePath([\"/api/auth\", config?.basePath ?? null], \"signout\"), {\r\n        method: \"POST\",\r\n    });\r\n    const { signout } = await res.json();\r\n    if (!signout) {\r\n        throw new Error(\"Sign out not successful!\");\r\n    }\r\n    res = await fetch(mergePath([\"/api/auth\", config?.basePath ?? null], \"session\"));\r\n    const session = await res.json();\r\n    return session;\r\n}\r\n"],"names":[],"mappings":"uBAA8B,QAAQ;AAClC,MAAI,MAAM,MAAM,MAAM,UAAU,CAAC,aAAa,QAAQ,YAAY,OAAO,YAAY;AAAA,IACjF,QAAQ;AAAA;AAEZ,QAAM,EAAE,YAAY,MAAM,IAAI;AAC9B,MAAI,CAAC,SAAS;AACV,UAAM,IAAI,MAAM;AAAA;AAEpB,QAAM,MAAM,MAAM,UAAU,CAAC,aAAa,QAAQ,YAAY,OAAO;AACrE,QAAM,UAAU,MAAM,IAAI;AAC1B,SAAO;AAAA;;;;"} | ||||
							
								
								
									
										19
									
								
								dist/client/signOut.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								dist/client/signOut.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| async function signOut(config) { | ||||
|   let res = await fetch(mergePath(["/api/auth", config?.basePath ?? null], "signout"), { | ||||
|     method: "POST" | ||||
|   }); | ||||
|   const { signout } = await res.json(); | ||||
|   if (!signout) { | ||||
|     throw new Error("Sign out not successful!"); | ||||
|   } | ||||
|   res = await fetch(mergePath(["/api/auth", config?.basePath ?? null], "session")); | ||||
|   const session = await res.json(); | ||||
|   return session; | ||||
| } | ||||
| 
 | ||||
| exports.signOut = signOut; | ||||
| //# sourceMappingURL=signOut.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/signOut.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/signOut.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"signOut.js","sources":["../../src/client/signOut.ts"],"sourcesContent":["export async function signOut(config) {\r\n    let res = await fetch(mergePath([\"/api/auth\", config?.basePath ?? null], \"signout\"), {\r\n        method: \"POST\",\r\n    });\r\n    const { signout } = await res.json();\r\n    if (!signout) {\r\n        throw new Error(\"Sign out not successful!\");\r\n    }\r\n    res = await fetch(mergePath([\"/api/auth\", config?.basePath ?? null], \"session\"));\r\n    const session = await res.json();\r\n    return session;\r\n}\r\n"],"names":[],"mappings":";;;;uBAA8B,QAAQ;AAClC,MAAI,MAAM,MAAM,MAAM,UAAU,CAAC,aAAa,QAAQ,YAAY,OAAO,YAAY;AAAA,IACjF,QAAQ;AAAA;AAEZ,QAAM,EAAE,YAAY,MAAM,IAAI;AAC9B,MAAI,CAAC,SAAS;AACV,UAAM,IAAI,MAAM;AAAA;AAEpB,QAAM,MAAM,MAAM,UAAU,CAAC,aAAa,QAAQ,YAAY,OAAO;AACrE,QAAM,UAAU,MAAM,IAAI;AAC1B,SAAO;AAAA;;;;"} | ||||
							
								
								
									
										3
									
								
								dist/client/types.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								dist/client/types.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| export interface ClientRequestConfig { | ||||
|     basePath?: string; | ||||
| } | ||||
							
								
								
									
										2
									
								
								dist/client/types.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								dist/client/types.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| 
 | ||||
| //# sourceMappingURL=types.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/types.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/types.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"types.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} | ||||
							
								
								
									
										3
									
								
								dist/client/types.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								dist/client/types.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| //# sourceMappingURL=types.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/client/types.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/client/types.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"} | ||||
							
								
								
									
										1
									
								
								dist/helpers.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/helpers.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| export declare function ucFirst(val: string): string; | ||||
							
								
								
									
										6
									
								
								dist/helpers.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								dist/helpers.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| function ucFirst(val) { | ||||
|   return val.charAt(0).toUpperCase() + val.slice(1); | ||||
| } | ||||
| 
 | ||||
| export { ucFirst }; | ||||
| //# sourceMappingURL=helpers.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/helpers.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/helpers.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"helpers.esm.js","sources":["../src/helpers.ts"],"sourcesContent":["export function ucFirst(val) {\r\n    return val.charAt(0).toUpperCase() + val.slice(1);\r\n}\r\n"],"names":[],"mappings":"iBAAwB,KAAK;AACzB,SAAO,IAAI,OAAO,GAAG,gBAAgB,IAAI,MAAM;AAAA;;;;"} | ||||
							
								
								
									
										10
									
								
								dist/helpers.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								dist/helpers.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| function ucFirst(val) { | ||||
|   return val.charAt(0).toUpperCase() + val.slice(1); | ||||
| } | ||||
| 
 | ||||
| exports.ucFirst = ucFirst; | ||||
| //# sourceMappingURL=helpers.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/helpers.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/helpers.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"helpers.js","sources":["../src/helpers.ts"],"sourcesContent":["export function ucFirst(val) {\r\n    return val.charAt(0).toUpperCase() + val.slice(1);\r\n}\r\n"],"names":[],"mappings":";;;;iBAAwB,KAAK;AACzB,SAAO,IAAI,OAAO,GAAG,gBAAgB,IAAI,MAAM;AAAA;;;;"} | ||||
							
								
								
									
										29
									
								
								dist/index-3b2ed965.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								dist/index-3b2ed965.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| var providers_base = require('./providers/base.js'); | ||||
| var providers_github = require('./providers/github.js'); | ||||
| var providers_google = require('./providers/google.js'); | ||||
| var providers_facebook = require('./providers/facebook.js'); | ||||
| var providers_oauth2_base = require('./providers/oauth2.base.js'); | ||||
| var providers_oauth2 = require('./providers/oauth2.js'); | ||||
| var providers_reddit = require('./providers/reddit.js'); | ||||
| var providers_spotify = require('./providers/spotify.js'); | ||||
| var providers_twitch = require('./providers/twitch.js'); | ||||
| var providers_twitter = require('./providers/twitter.js'); | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: providers_base.Provider, | ||||
| 	GitHubOAuth2Provider: providers_github.GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: providers_google.GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: providers_facebook.FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: providers_oauth2_base.OAuth2BaseProvider, | ||||
| 	OAuth2Provider: providers_oauth2.OAuth2Provider, | ||||
| 	RedditOAuth2Provider: providers_reddit.RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: providers_spotify.SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: providers_twitch.TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: providers_twitter.TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| exports.index = index; | ||||
| //# sourceMappingURL=index-3b2ed965.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-3b2ed965.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-3b2ed965.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-3b2ed965.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										29
									
								
								dist/index-451e9b40.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								dist/index-451e9b40.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| var providers_base = require('./providers/base.js'); | ||||
| var providers_github = require('./providers/github.js'); | ||||
| var providers_google = require('./providers/google.js'); | ||||
| var providers_facebook = require('./providers/facebook.js'); | ||||
| var providers_oauth2_base = require('./providers/oauth2.base.js'); | ||||
| var providers_oauth2 = require('./providers/oauth2.js'); | ||||
| var providers_reddit = require('./providers/reddit.js'); | ||||
| var providers_spotify = require('./providers/spotify.js'); | ||||
| var providers_twitch = require('./providers/twitch.js'); | ||||
| var providers_twitter = require('./providers/twitter.js'); | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: providers_base.Provider, | ||||
| 	GitHubOAuth2Provider: providers_github.GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: providers_google.GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: providers_facebook.FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: providers_oauth2_base.OAuth2BaseProvider, | ||||
| 	OAuth2Provider: providers_oauth2.OAuth2Provider, | ||||
| 	RedditOAuth2Provider: providers_reddit.RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: providers_spotify.SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: providers_twitch.TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: providers_twitter.TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| exports.index = index; | ||||
| //# sourceMappingURL=index-451e9b40.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-451e9b40.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-451e9b40.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-451e9b40.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										29
									
								
								dist/index-5a05d977.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								dist/index-5a05d977.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| var providers_base = require('./providers/base.js'); | ||||
| var providers_github = require('./providers/github.js'); | ||||
| var providers_google = require('./providers/google.js'); | ||||
| var providers_facebook = require('./providers/facebook.js'); | ||||
| var providers_oauth2_base = require('./providers/oauth2.base.js'); | ||||
| var providers_oauth2 = require('./providers/oauth2.js'); | ||||
| var providers_reddit = require('./providers/reddit.js'); | ||||
| var providers_spotify = require('./providers/spotify.js'); | ||||
| var providers_twitch = require('./providers/twitch.js'); | ||||
| var providers_twitter = require('./providers/twitter.js'); | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: providers_base.Provider, | ||||
| 	GitHubOAuth2Provider: providers_github.GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: providers_google.GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: providers_facebook.FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: providers_oauth2_base.OAuth2BaseProvider, | ||||
| 	OAuth2Provider: providers_oauth2.OAuth2Provider, | ||||
| 	RedditOAuth2Provider: providers_reddit.RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: providers_spotify.SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: providers_twitch.TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: providers_twitter.TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| exports.index = index; | ||||
| //# sourceMappingURL=index-5a05d977.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-5a05d977.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-5a05d977.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-5a05d977.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										27
									
								
								dist/index-7062648c.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								dist/index-7062648c.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| import { Provider } from './providers/base.esm.js'; | ||||
| import { GitHubOAuth2Provider } from './providers/github.esm.js'; | ||||
| import { GoogleOAuth2Provider } from './providers/google.esm.js'; | ||||
| import { FacebookOAuth2Provider } from './providers/facebook.esm.js'; | ||||
| import { OAuth2BaseProvider } from './providers/oauth2.base.esm.js'; | ||||
| import { OAuth2Provider } from './providers/oauth2.esm.js'; | ||||
| import { RedditOAuth2Provider } from './providers/reddit.esm.js'; | ||||
| import { SpotifyOAuth2Provider } from './providers/spotify.esm.js'; | ||||
| import { TwitchOAuth2Provider } from './providers/twitch.esm.js'; | ||||
| import { TwitterAuthProvider } from './providers/twitter.esm.js'; | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: Provider, | ||||
| 	GitHubOAuth2Provider: GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: OAuth2BaseProvider, | ||||
| 	OAuth2Provider: OAuth2Provider, | ||||
| 	RedditOAuth2Provider: RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| export { index as i }; | ||||
| //# sourceMappingURL=index-7062648c.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-7062648c.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-7062648c.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-7062648c.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										29
									
								
								dist/index-7119aebd.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								dist/index-7119aebd.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| var providers_base = require('./providers/base.js'); | ||||
| var providers_github = require('./providers/github.js'); | ||||
| var providers_google = require('./providers/google.js'); | ||||
| var providers_facebook = require('./providers/facebook.js'); | ||||
| var providers_oauth2_base = require('./providers/oauth2.base.js'); | ||||
| var providers_oauth2 = require('./providers/oauth2.js'); | ||||
| var providers_reddit = require('./providers/reddit.js'); | ||||
| var providers_spotify = require('./providers/spotify.js'); | ||||
| var providers_twitch = require('./providers/twitch.js'); | ||||
| var providers_twitter = require('./providers/twitter.js'); | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: providers_base.Provider, | ||||
| 	GitHubOAuth2Provider: providers_github.GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: providers_google.GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: providers_facebook.FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: providers_oauth2_base.OAuth2BaseProvider, | ||||
| 	OAuth2Provider: providers_oauth2.OAuth2Provider, | ||||
| 	RedditOAuth2Provider: providers_reddit.RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: providers_spotify.SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: providers_twitch.TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: providers_twitter.TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| exports.index = index; | ||||
| //# sourceMappingURL=index-7119aebd.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-7119aebd.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-7119aebd.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-7119aebd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										27
									
								
								dist/index-78606d49.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								dist/index-78606d49.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| import { Provider } from './providers/base.esm.js'; | ||||
| import { GitHubOAuth2Provider } from './providers/github.esm.js'; | ||||
| import { GoogleOAuth2Provider } from './providers/google.esm.js'; | ||||
| import { FacebookOAuth2Provider } from './providers/facebook.esm.js'; | ||||
| import { OAuth2BaseProvider } from './providers/oauth2.base.esm.js'; | ||||
| import { OAuth2Provider } from './providers/oauth2.esm.js'; | ||||
| import { RedditOAuth2Provider } from './providers/reddit.esm.js'; | ||||
| import { SpotifyOAuth2Provider } from './providers/spotify.esm.js'; | ||||
| import { TwitchOAuth2Provider } from './providers/twitch.esm.js'; | ||||
| import { TwitterAuthProvider } from './providers/twitter.esm.js'; | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: Provider, | ||||
| 	GitHubOAuth2Provider: GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: OAuth2BaseProvider, | ||||
| 	OAuth2Provider: OAuth2Provider, | ||||
| 	RedditOAuth2Provider: RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| export { index as i }; | ||||
| //# sourceMappingURL=index-78606d49.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-78606d49.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-78606d49.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-78606d49.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										27
									
								
								dist/index-89d051e3.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								dist/index-89d051e3.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| import { Provider } from './providers/base.esm.js'; | ||||
| import { GitHubOAuth2Provider } from './providers/github.esm.js'; | ||||
| import { GoogleOAuth2Provider } from './providers/google.esm.js'; | ||||
| import { FacebookOAuth2Provider } from './providers/facebook.esm.js'; | ||||
| import { OAuth2BaseProvider } from './providers/oauth2.base.esm.js'; | ||||
| import { OAuth2Provider } from './providers/oauth2.esm.js'; | ||||
| import { RedditOAuth2Provider } from './providers/reddit.esm.js'; | ||||
| import { SpotifyOAuth2Provider } from './providers/spotify.esm.js'; | ||||
| import { TwitchOAuth2Provider } from './providers/twitch.esm.js'; | ||||
| import { TwitterAuthProvider } from './providers/twitter.esm.js'; | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: Provider, | ||||
| 	GitHubOAuth2Provider: GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: OAuth2BaseProvider, | ||||
| 	OAuth2Provider: OAuth2Provider, | ||||
| 	RedditOAuth2Provider: RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| export { index as i }; | ||||
| //# sourceMappingURL=index-89d051e3.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-89d051e3.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-89d051e3.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-89d051e3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										27
									
								
								dist/index-a992efb5.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								dist/index-a992efb5.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| import { Provider } from './providers/base.esm.js'; | ||||
| import { GitHubOAuth2Provider } from './providers/github.esm.js'; | ||||
| import { GoogleOAuth2Provider } from './providers/google.esm.js'; | ||||
| import { FacebookOAuth2Provider } from './providers/facebook.esm.js'; | ||||
| import { OAuth2BaseProvider } from './providers/oauth2.base.esm.js'; | ||||
| import { OAuth2Provider } from './providers/oauth2.esm.js'; | ||||
| import { RedditOAuth2Provider } from './providers/reddit.esm.js'; | ||||
| import { SpotifyOAuth2Provider } from './providers/spotify.esm.js'; | ||||
| import { TwitchOAuth2Provider } from './providers/twitch.esm.js'; | ||||
| import { TwitterAuthProvider } from './providers/twitter.esm.js'; | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: Provider, | ||||
| 	GitHubOAuth2Provider: GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: OAuth2BaseProvider, | ||||
| 	OAuth2Provider: OAuth2Provider, | ||||
| 	RedditOAuth2Provider: RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| export { index as i }; | ||||
| //# sourceMappingURL=index-a992efb5.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-a992efb5.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-a992efb5.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-a992efb5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										29
									
								
								dist/index-ae63e66d.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								dist/index-ae63e66d.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| var providers_base = require('./providers/base.js'); | ||||
| var providers_github = require('./providers/github.js'); | ||||
| var providers_google = require('./providers/google.js'); | ||||
| var providers_facebook = require('./providers/facebook.js'); | ||||
| var providers_oauth2_base = require('./providers/oauth2.base.js'); | ||||
| var providers_oauth2 = require('./providers/oauth2.js'); | ||||
| var providers_reddit = require('./providers/reddit.js'); | ||||
| var providers_spotify = require('./providers/spotify.js'); | ||||
| var providers_twitch = require('./providers/twitch.js'); | ||||
| var providers_twitter = require('./providers/twitter.js'); | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: providers_base.Provider, | ||||
| 	GitHubOAuth2Provider: providers_github.GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: providers_google.GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: providers_facebook.FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: providers_oauth2_base.OAuth2BaseProvider, | ||||
| 	OAuth2Provider: providers_oauth2.OAuth2Provider, | ||||
| 	RedditOAuth2Provider: providers_reddit.RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: providers_spotify.SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: providers_twitch.TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: providers_twitter.TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| exports.index = index; | ||||
| //# sourceMappingURL=index-ae63e66d.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-ae63e66d.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-ae63e66d.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-ae63e66d.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										27
									
								
								dist/index-c3125b61.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								dist/index-c3125b61.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| import { Provider } from './providers/base.esm.js'; | ||||
| import { GitHubOAuth2Provider } from './providers/github.esm.js'; | ||||
| import { GoogleOAuth2Provider } from './providers/google.esm.js'; | ||||
| import { FacebookOAuth2Provider } from './providers/facebook.esm.js'; | ||||
| import { OAuth2BaseProvider } from './providers/oauth2.base.esm.js'; | ||||
| import { OAuth2Provider } from './providers/oauth2.esm.js'; | ||||
| import { RedditOAuth2Provider } from './providers/reddit.esm.js'; | ||||
| import { SpotifyOAuth2Provider } from './providers/spotify.esm.js'; | ||||
| import { TwitchOAuth2Provider } from './providers/twitch.esm.js'; | ||||
| import { TwitterAuthProvider } from './providers/twitter.esm.js'; | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: Provider, | ||||
| 	GitHubOAuth2Provider: GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: OAuth2BaseProvider, | ||||
| 	OAuth2Provider: OAuth2Provider, | ||||
| 	RedditOAuth2Provider: RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| export { index as i }; | ||||
| //# sourceMappingURL=index-c3125b61.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-c3125b61.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-c3125b61.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-c3125b61.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										29
									
								
								dist/index-e7836e82.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								dist/index-e7836e82.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| var providers_base = require('./providers/base.js'); | ||||
| var providers_github = require('./providers/github.js'); | ||||
| var providers_google = require('./providers/google.js'); | ||||
| var providers_facebook = require('./providers/facebook.js'); | ||||
| var providers_oauth2_base = require('./providers/oauth2.base.js'); | ||||
| var providers_oauth2 = require('./providers/oauth2.js'); | ||||
| var providers_reddit = require('./providers/reddit.js'); | ||||
| var providers_spotify = require('./providers/spotify.js'); | ||||
| var providers_twitch = require('./providers/twitch.js'); | ||||
| var providers_twitter = require('./providers/twitter.js'); | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: providers_base.Provider, | ||||
| 	GitHubOAuth2Provider: providers_github.GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: providers_google.GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: providers_facebook.FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: providers_oauth2_base.OAuth2BaseProvider, | ||||
| 	OAuth2Provider: providers_oauth2.OAuth2Provider, | ||||
| 	RedditOAuth2Provider: providers_reddit.RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: providers_spotify.SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: providers_twitch.TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: providers_twitter.TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| exports.index = index; | ||||
| //# sourceMappingURL=index-e7836e82.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-e7836e82.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-e7836e82.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-e7836e82.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										27
									
								
								dist/index-f8d37b2d.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								dist/index-f8d37b2d.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| import { Provider } from './providers/base.esm.js'; | ||||
| import { GitHubOAuth2Provider } from './providers/github.esm.js'; | ||||
| import { GoogleOAuth2Provider } from './providers/google.esm.js'; | ||||
| import { FacebookOAuth2Provider } from './providers/facebook.esm.js'; | ||||
| import { OAuth2BaseProvider } from './providers/oauth2.base.esm.js'; | ||||
| import { OAuth2Provider } from './providers/oauth2.esm.js'; | ||||
| import { RedditOAuth2Provider } from './providers/reddit.esm.js'; | ||||
| import { SpotifyOAuth2Provider } from './providers/spotify.esm.js'; | ||||
| import { TwitchOAuth2Provider } from './providers/twitch.esm.js'; | ||||
| import { TwitterAuthProvider } from './providers/twitter.esm.js'; | ||||
| 
 | ||||
| var index = /*#__PURE__*/Object.freeze({ | ||||
| 	__proto__: null, | ||||
| 	Provider: Provider, | ||||
| 	GitHubOAuth2Provider: GitHubOAuth2Provider, | ||||
| 	GoogleOAuth2Provider: GoogleOAuth2Provider, | ||||
| 	FacebookOAuth2Provider: FacebookOAuth2Provider, | ||||
| 	OAuth2BaseProvider: OAuth2BaseProvider, | ||||
| 	OAuth2Provider: OAuth2Provider, | ||||
| 	RedditOAuth2Provider: RedditOAuth2Provider, | ||||
| 	SpotifyOAuth2Provider: SpotifyOAuth2Provider, | ||||
| 	TwitchOAuth2Provider: TwitchOAuth2Provider, | ||||
| 	TwitterAuthProvider: TwitterAuthProvider | ||||
| }); | ||||
| 
 | ||||
| export { index as i }; | ||||
| //# sourceMappingURL=index-f8d37b2d.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index-f8d37b2d.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index-f8d37b2d.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index-f8d37b2d.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										4
									
								
								dist/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								dist/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | ||||
| export { Auth as SvelteKitAuth } from "./auth"; | ||||
| export type { JWT, Session, User } from "./interfaces"; | ||||
| export * as Providers from "./providers"; | ||||
| export type { CallbackResult, Profile } from "./types"; | ||||
							
								
								
									
										17
									
								
								dist/index.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								dist/index.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| export { Auth as SvelteKitAuth } from './auth.esm.js'; | ||||
| export { i as Providers } from './index-c3125b61.js'; | ||||
| import 'cookie'; | ||||
| import 'jsonwebtoken'; | ||||
| import './path.esm.js'; | ||||
| import './providers/base.esm.js'; | ||||
| import './providers/github.esm.js'; | ||||
| import './providers/oauth2.esm.js'; | ||||
| import './helpers.esm.js'; | ||||
| import './providers/oauth2.base.esm.js'; | ||||
| import './providers/google.esm.js'; | ||||
| import './providers/facebook.esm.js'; | ||||
| import './providers/reddit.esm.js'; | ||||
| import './providers/spotify.esm.js'; | ||||
| import './providers/twitch.esm.js'; | ||||
| import './providers/twitter.esm.js'; | ||||
| //# sourceMappingURL=index.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										26
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,26 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| var auth = require('./auth.js'); | ||||
| var providers_index = require('./index-e7836e82.js'); | ||||
| require('cookie'); | ||||
| require('jsonwebtoken'); | ||||
| require('./path.js'); | ||||
| require('./providers/base.js'); | ||||
| require('./providers/github.js'); | ||||
| require('./providers/oauth2.js'); | ||||
| require('./helpers.js'); | ||||
| require('./providers/oauth2.base.js'); | ||||
| require('./providers/google.js'); | ||||
| require('./providers/facebook.js'); | ||||
| require('./providers/reddit.js'); | ||||
| require('./providers/spotify.js'); | ||||
| require('./providers/twitch.js'); | ||||
| require('./providers/twitter.js'); | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| exports.SvelteKitAuth = auth.Auth; | ||||
| exports.Providers = providers_index.index; | ||||
| //# sourceMappingURL=index.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/index.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/index.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
							
								
								
									
										11
									
								
								dist/interfaces.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								dist/interfaces.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| export interface JWT { | ||||
|     user: User; | ||||
|     [key: string]: any; | ||||
| } | ||||
| export interface User { | ||||
|     [key: string]: any; | ||||
| } | ||||
| export interface Session { | ||||
|     user: User; | ||||
|     [key: string]: any; | ||||
| } | ||||
							
								
								
									
										2
									
								
								dist/interfaces.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								dist/interfaces.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| 
 | ||||
| //# sourceMappingURL=interfaces.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/interfaces.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/interfaces.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"interfaces.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} | ||||
							
								
								
									
										3
									
								
								dist/interfaces.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								dist/interfaces.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| //# sourceMappingURL=interfaces.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/interfaces.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/interfaces.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"interfaces.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"} | ||||
							
								
								
									
										1
									
								
								dist/path.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/path.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| export declare function join(parts: string[], sep?: string): string; | ||||
							
								
								
									
										8
									
								
								dist/path.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								dist/path.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| function join(parts, sep = "/") { | ||||
|   const separator = sep || "/"; | ||||
|   const replace = new RegExp(separator + "{1,}", "g"); | ||||
|   return parts.join(separator).replace(replace, separator); | ||||
| } | ||||
| 
 | ||||
| export { join }; | ||||
| //# sourceMappingURL=path.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/path.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/path.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"path.esm.js","sources":["../src/path.ts"],"sourcesContent":["export function join(parts, sep = \"/\") {\r\n    const separator = sep || \"/\";\r\n    const replace = new RegExp(separator + \"{1,}\", \"g\");\r\n    return parts.join(separator).replace(replace, separator);\r\n}\r\n"],"names":[],"mappings":"cAAqB,OAAO,MAAM,KAAK;AACnC,QAAM,YAAY,OAAO;AACzB,QAAM,UAAU,IAAI,OAAO,YAAY,QAAQ;AAC/C,SAAO,MAAM,KAAK,WAAW,QAAQ,SAAS;AAAA;;;;"} | ||||
							
								
								
									
										12
									
								
								dist/path.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								dist/path.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| function join(parts, sep = "/") { | ||||
|   const separator = sep || "/"; | ||||
|   const replace = new RegExp(separator + "{1,}", "g"); | ||||
|   return parts.join(separator).replace(replace, separator); | ||||
| } | ||||
| 
 | ||||
| exports.join = join; | ||||
| //# sourceMappingURL=path.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/path.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/path.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"path.js","sources":["../src/path.ts"],"sourcesContent":["export function join(parts, sep = \"/\") {\r\n    const separator = sep || \"/\";\r\n    const replace = new RegExp(separator + \"{1,}\", \"g\");\r\n    return parts.join(separator).replace(replace, separator);\r\n}\r\n"],"names":[],"mappings":";;;;cAAqB,OAAO,MAAM,KAAK;AACnC,QAAM,YAAY,OAAO;AACzB,QAAM,UAAU,IAAI,OAAO,YAAY,QAAQ;AAC/C,SAAO,MAAM,KAAK,WAAW,QAAQ,SAAS;AAAA;;;;"} | ||||
							
								
								
									
										18
									
								
								dist/providers/base.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								dist/providers/base.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,18 @@ | ||||
| import type { EndpointOutput } from "@sveltejs/kit"; | ||||
| import { RequestEvent } from "@sveltejs/kit/types/hooks"; | ||||
| import type { Auth } from "../auth"; | ||||
| import type { CallbackResult } from "../types"; | ||||
| export interface ProviderConfig { | ||||
|     id?: string; | ||||
|     profile?: (profile: any, account: any) => any | Promise<any>; | ||||
| } | ||||
| export declare abstract class Provider<T extends ProviderConfig = ProviderConfig> { | ||||
|     protected readonly config: T; | ||||
|     id: string; | ||||
|     constructor(config: T); | ||||
|     getUri(svelteKitAuth: Auth, path: string, host?: string): string; | ||||
|     getCallbackUri(svelteKitAuth: Auth, host?: string): string; | ||||
|     getSigninUri(svelteKitAuth: Auth, host?: string): string; | ||||
|     abstract signin<Locals extends Record<string, any> = Record<string, any>, Body = unknown>(event: RequestEvent, svelteKitAuth: Auth): EndpointOutput | Promise<EndpointOutput>; | ||||
|     abstract callback<Locals extends Record<string, any> = Record<string, any>, Body = unknown>(event: RequestEvent, svelteKitAuth: Auth): CallbackResult | Promise<CallbackResult>; | ||||
| } | ||||
							
								
								
									
										18
									
								
								dist/providers/base.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								dist/providers/base.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,18 @@ | ||||
| class Provider { | ||||
|   constructor(config) { | ||||
|     this.config = config; | ||||
|     this.id = config.id; | ||||
|   } | ||||
|   getUri(svelteKitAuth, path, host) { | ||||
|     return svelteKitAuth.getUrl(path, host); | ||||
|   } | ||||
|   getCallbackUri(svelteKitAuth, host) { | ||||
|     return this.getUri(svelteKitAuth, `${"/callback/"}${this.id}`, host); | ||||
|   } | ||||
|   getSigninUri(svelteKitAuth, host) { | ||||
|     return this.getUri(svelteKitAuth, `${"/signin/"}${this.id}`, host); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| export { Provider }; | ||||
| //# sourceMappingURL=base.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/base.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/base.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"base.esm.js","sources":["../../src/providers/base.ts"],"sourcesContent":["export class Provider {\r\n    constructor(config) {\r\n        this.config = config;\r\n        this.id = config.id;\r\n    }\r\n    getUri(svelteKitAuth, path, host) {\r\n        return svelteKitAuth.getUrl(path, host);\r\n    }\r\n    getCallbackUri(svelteKitAuth, host) {\r\n        return this.getUri(svelteKitAuth, `${\"/callback/\"}${this.id}`, host);\r\n    }\r\n    getSigninUri(svelteKitAuth, host) {\r\n        return this.getUri(svelteKitAuth, `${\"/signin/\"}${this.id}`, host);\r\n    }\r\n}\r\n"],"names":[],"mappings":"eAAsB;AAAA,EAClB,YAAY,QAAQ;AAChB,SAAK,SAAS;AACd,SAAK,KAAK,OAAO;AAAA;AAAA,EAErB,OAAO,eAAe,MAAM,MAAM;AAC9B,WAAO,cAAc,OAAO,MAAM;AAAA;AAAA,EAEtC,eAAe,eAAe,MAAM;AAChC,WAAO,KAAK,OAAO,eAAe,GAAG,eAAe,KAAK,MAAM;AAAA;AAAA,EAEnE,aAAa,eAAe,MAAM;AAC9B,WAAO,KAAK,OAAO,eAAe,GAAG,aAAa,KAAK,MAAM;AAAA;AAAA;;;;"} | ||||
							
								
								
									
										22
									
								
								dist/providers/base.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								dist/providers/base.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| class Provider { | ||||
|   constructor(config) { | ||||
|     this.config = config; | ||||
|     this.id = config.id; | ||||
|   } | ||||
|   getUri(svelteKitAuth, path, host) { | ||||
|     return svelteKitAuth.getUrl(path, host); | ||||
|   } | ||||
|   getCallbackUri(svelteKitAuth, host) { | ||||
|     return this.getUri(svelteKitAuth, `${"/callback/"}${this.id}`, host); | ||||
|   } | ||||
|   getSigninUri(svelteKitAuth, host) { | ||||
|     return this.getUri(svelteKitAuth, `${"/signin/"}${this.id}`, host); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| exports.Provider = Provider; | ||||
| //# sourceMappingURL=base.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/base.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/base.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"base.js","sources":["../../src/providers/base.ts"],"sourcesContent":["export class Provider {\r\n    constructor(config) {\r\n        this.config = config;\r\n        this.id = config.id;\r\n    }\r\n    getUri(svelteKitAuth, path, host) {\r\n        return svelteKitAuth.getUrl(path, host);\r\n    }\r\n    getCallbackUri(svelteKitAuth, host) {\r\n        return this.getUri(svelteKitAuth, `${\"/callback/\"}${this.id}`, host);\r\n    }\r\n    getSigninUri(svelteKitAuth, host) {\r\n        return this.getUri(svelteKitAuth, `${\"/signin/\"}${this.id}`, host);\r\n    }\r\n}\r\n"],"names":[],"mappings":";;;;eAAsB;AAAA,EAClB,YAAY,QAAQ;AAChB,SAAK,SAAS;AACd,SAAK,KAAK,OAAO;AAAA;AAAA,EAErB,OAAO,eAAe,MAAM,MAAM;AAC9B,WAAO,cAAc,OAAO,MAAM;AAAA;AAAA,EAEtC,eAAe,eAAe,MAAM;AAChC,WAAO,KAAK,OAAO,eAAe,GAAG,eAAe,KAAK,MAAM;AAAA;AAAA,EAEnE,aAAa,eAAe,MAAM;AAC9B,WAAO,KAAK,OAAO,eAAe,GAAG,aAAa,KAAK,MAAM;AAAA;AAAA;;;;"} | ||||
							
								
								
									
										30
									
								
								dist/providers/facebook.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								dist/providers/facebook.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| import { OAuth2Provider, OAuth2ProviderConfig } from "./oauth2"; | ||||
| export interface FacebookProfile { | ||||
|     id: string; | ||||
|     name: string; | ||||
|     first_name: string; | ||||
|     last_name: string; | ||||
|     name_format: string; | ||||
|     picture: { | ||||
|         data: { | ||||
|             height: number; | ||||
|             is_silhouette: boolean; | ||||
|             url: string; | ||||
|             width: number; | ||||
|         }; | ||||
|     }; | ||||
|     short_name: string; | ||||
|     email: string; | ||||
| } | ||||
| export interface FacebookTokens { | ||||
|     access_token: string; | ||||
|     token_type: string; | ||||
|     expires_in: number; | ||||
| } | ||||
| interface FacebookOAuth2ProviderConfig<ProfileType = FacebookProfile> extends OAuth2ProviderConfig<ProfileType, FacebookTokens> { | ||||
|     userProfileFields?: string | (keyof ProfileType)[] | (string | number | symbol)[]; | ||||
| } | ||||
| export declare class FacebookOAuth2Provider<ProfileType = FacebookProfile> extends OAuth2Provider<ProfileType, FacebookTokens, FacebookOAuth2ProviderConfig<ProfileType>> { | ||||
|     constructor(config: FacebookOAuth2ProviderConfig<ProfileType>); | ||||
| } | ||||
| export {}; | ||||
							
								
								
									
										40
									
								
								dist/providers/facebook.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								dist/providers/facebook.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,40 @@ | ||||
| import { OAuth2Provider } from './oauth2.esm.js'; | ||||
| import '../helpers.esm.js'; | ||||
| import './oauth2.base.esm.js'; | ||||
| import './base.esm.js'; | ||||
| 
 | ||||
| const defaultConfig = { | ||||
|   id: "facebook", | ||||
|   scope: ["email", "public_profile", "user_link"], | ||||
|   userProfileFields: [ | ||||
|     "id", | ||||
|     "name", | ||||
|     "first_name", | ||||
|     "last_name", | ||||
|     "middle_name", | ||||
|     "name_format", | ||||
|     "picture", | ||||
|     "short_name", | ||||
|     "email" | ||||
|   ], | ||||
|   profileUrl: "https://graph.facebook.com/me", | ||||
|   authorizationUrl: "https://www.facebook.com/v10.0/dialog/oauth", | ||||
|   accessTokenUrl: "https://graph.facebook.com/v10.0/oauth/access_token" | ||||
| }; | ||||
| class FacebookOAuth2Provider extends OAuth2Provider { | ||||
|   constructor(config) { | ||||
|     const userProfileFields = config.userProfileFields ?? defaultConfig.userProfileFields; | ||||
|     const data = { | ||||
|       fields: Array.isArray(userProfileFields) ? userProfileFields.join(",") : userProfileFields | ||||
|     }; | ||||
|     const profileUrl = `${config.profileUrl ?? defaultConfig.profileUrl}?${new URLSearchParams(data)}`; | ||||
|     super({ | ||||
|       ...defaultConfig, | ||||
|       ...config, | ||||
|       profileUrl | ||||
|     }); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| export { FacebookOAuth2Provider }; | ||||
| //# sourceMappingURL=facebook.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/facebook.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/facebook.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"facebook.esm.js","sources":["../../src/providers/facebook.ts"],"sourcesContent":["import { OAuth2Provider } from \"./oauth2\";\r\nconst defaultConfig = {\r\n    id: \"facebook\",\r\n    scope: [\"email\", \"public_profile\", \"user_link\"],\r\n    userProfileFields: [\r\n        \"id\",\r\n        \"name\",\r\n        \"first_name\",\r\n        \"last_name\",\r\n        \"middle_name\",\r\n        \"name_format\",\r\n        \"picture\",\r\n        \"short_name\",\r\n        \"email\",\r\n    ],\r\n    profileUrl: \"https://graph.facebook.com/me\",\r\n    authorizationUrl: \"https://www.facebook.com/v10.0/dialog/oauth\",\r\n    accessTokenUrl: \"https://graph.facebook.com/v10.0/oauth/access_token\",\r\n};\r\nexport class FacebookOAuth2Provider extends OAuth2Provider {\r\n    constructor(config) {\r\n        const userProfileFields = config.userProfileFields ?? defaultConfig.userProfileFields;\r\n        const data = {\r\n            fields: Array.isArray(userProfileFields) ? userProfileFields.join(\",\") : userProfileFields,\r\n        };\r\n        const profileUrl = `${config.profileUrl ?? defaultConfig.profileUrl}?${new URLSearchParams(data)}`;\r\n        super({\r\n            ...defaultConfig,\r\n            ...config,\r\n            profileUrl,\r\n        });\r\n    }\r\n}\r\n"],"names":[],"mappings":";;;;;AACA,MAAM,gBAAgB;AAAA,EAClB,IAAI;AAAA,EACJ,OAAO,CAAC,SAAS,kBAAkB;AAAA,EACnC,mBAAmB;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,EAEJ,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,gBAAgB;AAAA;qCAEwB,eAAe;AAAA,EACvD,YAAY,QAAQ;AAChB,UAAM,oBAAoB,OAAO,qBAAqB,cAAc;AACpE,UAAM,OAAO;AAAA,MACT,QAAQ,MAAM,QAAQ,qBAAqB,kBAAkB,KAAK,OAAO;AAAA;AAE7E,UAAM,aAAa,GAAG,OAAO,cAAc,cAAc,cAAc,IAAI,gBAAgB;AAC3F,UAAM;AAAA,SACC;AAAA,SACA;AAAA,MACH;AAAA;AAAA;AAAA;;;;"} | ||||
							
								
								
									
										44
									
								
								dist/providers/facebook.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								dist/providers/facebook.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,44 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| var providers_oauth2 = require('./oauth2.js'); | ||||
| require('../helpers.js'); | ||||
| require('./oauth2.base.js'); | ||||
| require('./base.js'); | ||||
| 
 | ||||
| const defaultConfig = { | ||||
|   id: "facebook", | ||||
|   scope: ["email", "public_profile", "user_link"], | ||||
|   userProfileFields: [ | ||||
|     "id", | ||||
|     "name", | ||||
|     "first_name", | ||||
|     "last_name", | ||||
|     "middle_name", | ||||
|     "name_format", | ||||
|     "picture", | ||||
|     "short_name", | ||||
|     "email" | ||||
|   ], | ||||
|   profileUrl: "https://graph.facebook.com/me", | ||||
|   authorizationUrl: "https://www.facebook.com/v10.0/dialog/oauth", | ||||
|   accessTokenUrl: "https://graph.facebook.com/v10.0/oauth/access_token" | ||||
| }; | ||||
| class FacebookOAuth2Provider extends providers_oauth2.OAuth2Provider { | ||||
|   constructor(config) { | ||||
|     const userProfileFields = config.userProfileFields ?? defaultConfig.userProfileFields; | ||||
|     const data = { | ||||
|       fields: Array.isArray(userProfileFields) ? userProfileFields.join(",") : userProfileFields | ||||
|     }; | ||||
|     const profileUrl = `${config.profileUrl ?? defaultConfig.profileUrl}?${new URLSearchParams(data)}`; | ||||
|     super({ | ||||
|       ...defaultConfig, | ||||
|       ...config, | ||||
|       profileUrl | ||||
|     }); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| exports.FacebookOAuth2Provider = FacebookOAuth2Provider; | ||||
| //# sourceMappingURL=facebook.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/facebook.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/facebook.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"facebook.js","sources":["../../src/providers/facebook.ts"],"sourcesContent":["import { OAuth2Provider } from \"./oauth2\";\r\nconst defaultConfig = {\r\n    id: \"facebook\",\r\n    scope: [\"email\", \"public_profile\", \"user_link\"],\r\n    userProfileFields: [\r\n        \"id\",\r\n        \"name\",\r\n        \"first_name\",\r\n        \"last_name\",\r\n        \"middle_name\",\r\n        \"name_format\",\r\n        \"picture\",\r\n        \"short_name\",\r\n        \"email\",\r\n    ],\r\n    profileUrl: \"https://graph.facebook.com/me\",\r\n    authorizationUrl: \"https://www.facebook.com/v10.0/dialog/oauth\",\r\n    accessTokenUrl: \"https://graph.facebook.com/v10.0/oauth/access_token\",\r\n};\r\nexport class FacebookOAuth2Provider extends OAuth2Provider {\r\n    constructor(config) {\r\n        const userProfileFields = config.userProfileFields ?? defaultConfig.userProfileFields;\r\n        const data = {\r\n            fields: Array.isArray(userProfileFields) ? userProfileFields.join(\",\") : userProfileFields,\r\n        };\r\n        const profileUrl = `${config.profileUrl ?? defaultConfig.profileUrl}?${new URLSearchParams(data)}`;\r\n        super({\r\n            ...defaultConfig,\r\n            ...config,\r\n            profileUrl,\r\n        });\r\n    }\r\n}\r\n"],"names":["OAuth2Provider"],"mappings":";;;;;;;;;AACA,MAAM,gBAAgB;AAAA,EAClB,IAAI;AAAA,EACJ,OAAO,CAAC,SAAS,kBAAkB;AAAA,EACnC,mBAAmB;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,EAEJ,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,gBAAgB;AAAA;qCAEwBA,gCAAe;AAAA,EACvD,YAAY,QAAQ;AAChB,UAAM,oBAAoB,OAAO,qBAAqB,cAAc;AACpE,UAAM,OAAO;AAAA,MACT,QAAQ,MAAM,QAAQ,qBAAqB,kBAAkB,KAAK,OAAO;AAAA;AAE7E,UAAM,aAAa,GAAG,OAAO,cAAc,cAAc,cAAc,IAAI,gBAAgB;AAC3F,UAAM;AAAA,SACC;AAAA,SACA;AAAA,MACH;AAAA;AAAA;AAAA;;;;"} | ||||
							
								
								
									
										19
									
								
								dist/providers/github.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								dist/providers/github.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| import { OAuth2Provider, OAuth2ProviderConfig } from "./oauth2"; | ||||
| export interface GitHubProfile { | ||||
|     id: number; | ||||
|     login: string; | ||||
|     avatar_url: string; | ||||
|     url: string; | ||||
|     name: string; | ||||
| } | ||||
| export interface GitHubTokens { | ||||
|     access_token: string; | ||||
|     token_type: string; | ||||
|     expires_in: number; | ||||
| } | ||||
| declare type GitHubOAuth2ProviderConfig = OAuth2ProviderConfig<GitHubProfile, GitHubTokens>; | ||||
| export declare class GitHubOAuth2Provider extends OAuth2Provider<GitHubProfile, GitHubTokens, GitHubOAuth2ProviderConfig> { | ||||
|     constructor(config: GitHubOAuth2ProviderConfig); | ||||
|     getUserProfile(tokens: GitHubTokens): Promise<GitHubProfile>; | ||||
| } | ||||
| export {}; | ||||
							
								
								
									
										33
									
								
								dist/providers/github.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								dist/providers/github.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,33 @@ | ||||
| import { OAuth2Provider } from './oauth2.esm.js'; | ||||
| import '../helpers.esm.js'; | ||||
| import './oauth2.base.esm.js'; | ||||
| import './base.esm.js'; | ||||
| 
 | ||||
| const defaultConfig = { | ||||
|   id: "github", | ||||
|   scope: "user", | ||||
|   accessTokenUrl: "https://github.com/login/oauth/access_token", | ||||
|   authorizationUrl: "https://github.com/login/oauth/authorize", | ||||
|   profileUrl: "https://api.github.com/user", | ||||
|   headers: { | ||||
|     Accept: "application/json" | ||||
|   } | ||||
| }; | ||||
| class GitHubOAuth2Provider extends OAuth2Provider { | ||||
|   constructor(config) { | ||||
|     super({ | ||||
|       ...defaultConfig, | ||||
|       ...config | ||||
|     }); | ||||
|   } | ||||
|   async getUserProfile(tokens) { | ||||
|     const tokenType = "token"; | ||||
|     const res = await fetch(this.config.profileUrl, { | ||||
|       headers: { Authorization: `${tokenType} ${tokens.access_token}` } | ||||
|     }); | ||||
|     return await res.json(); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| export { GitHubOAuth2Provider }; | ||||
| //# sourceMappingURL=github.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/github.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/github.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"github.esm.js","sources":["../../src/providers/github.ts"],"sourcesContent":["import { OAuth2Provider } from \"./oauth2\";\r\nconst defaultConfig = {\r\n    id: \"github\",\r\n    scope: \"user\",\r\n    accessTokenUrl: \"https://github.com/login/oauth/access_token\",\r\n    authorizationUrl: \"https://github.com/login/oauth/authorize\",\r\n    profileUrl: \"https://api.github.com/user\",\r\n    headers: {\r\n        Accept: \"application/json\",\r\n    },\r\n};\r\nexport class GitHubOAuth2Provider extends OAuth2Provider {\r\n    constructor(config) {\r\n        super({\r\n            ...defaultConfig,\r\n            ...config,\r\n        });\r\n    }\r\n    async getUserProfile(tokens) {\r\n        const tokenType = \"token\";\r\n        const res = await fetch(this.config.profileUrl, {\r\n            headers: { Authorization: `${tokenType} ${tokens.access_token}` },\r\n        });\r\n        return await res.json();\r\n    }\r\n}\r\n"],"names":[],"mappings":";;;;;AACA,MAAM,gBAAgB;AAAA,EAClB,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,SAAS;AAAA,IACL,QAAQ;AAAA;AAAA;mCAG0B,eAAe;AAAA,EACrD,YAAY,QAAQ;AAChB,UAAM;AAAA,SACC;AAAA,SACA;AAAA;AAAA;AAAA,QAGL,eAAe,QAAQ;AACzB,UAAM,YAAY;AAClB,UAAM,MAAM,MAAM,MAAM,KAAK,OAAO,YAAY;AAAA,MAC5C,SAAS,EAAE,eAAe,GAAG,aAAa,OAAO;AAAA;AAErD,WAAO,MAAM,IAAI;AAAA;AAAA;;;;"} | ||||
							
								
								
									
										37
									
								
								dist/providers/github.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								dist/providers/github.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,37 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| var providers_oauth2 = require('./oauth2.js'); | ||||
| require('../helpers.js'); | ||||
| require('./oauth2.base.js'); | ||||
| require('./base.js'); | ||||
| 
 | ||||
| const defaultConfig = { | ||||
|   id: "github", | ||||
|   scope: "user", | ||||
|   accessTokenUrl: "https://github.com/login/oauth/access_token", | ||||
|   authorizationUrl: "https://github.com/login/oauth/authorize", | ||||
|   profileUrl: "https://api.github.com/user", | ||||
|   headers: { | ||||
|     Accept: "application/json" | ||||
|   } | ||||
| }; | ||||
| class GitHubOAuth2Provider extends providers_oauth2.OAuth2Provider { | ||||
|   constructor(config) { | ||||
|     super({ | ||||
|       ...defaultConfig, | ||||
|       ...config | ||||
|     }); | ||||
|   } | ||||
|   async getUserProfile(tokens) { | ||||
|     const tokenType = "token"; | ||||
|     const res = await fetch(this.config.profileUrl, { | ||||
|       headers: { Authorization: `${tokenType} ${tokens.access_token}` } | ||||
|     }); | ||||
|     return await res.json(); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| exports.GitHubOAuth2Provider = GitHubOAuth2Provider; | ||||
| //# sourceMappingURL=github.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/github.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/github.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"github.js","sources":["../../src/providers/github.ts"],"sourcesContent":["import { OAuth2Provider } from \"./oauth2\";\r\nconst defaultConfig = {\r\n    id: \"github\",\r\n    scope: \"user\",\r\n    accessTokenUrl: \"https://github.com/login/oauth/access_token\",\r\n    authorizationUrl: \"https://github.com/login/oauth/authorize\",\r\n    profileUrl: \"https://api.github.com/user\",\r\n    headers: {\r\n        Accept: \"application/json\",\r\n    },\r\n};\r\nexport class GitHubOAuth2Provider extends OAuth2Provider {\r\n    constructor(config) {\r\n        super({\r\n            ...defaultConfig,\r\n            ...config,\r\n        });\r\n    }\r\n    async getUserProfile(tokens) {\r\n        const tokenType = \"token\";\r\n        const res = await fetch(this.config.profileUrl, {\r\n            headers: { Authorization: `${tokenType} ${tokens.access_token}` },\r\n        });\r\n        return await res.json();\r\n    }\r\n}\r\n"],"names":["OAuth2Provider"],"mappings":";;;;;;;;;AACA,MAAM,gBAAgB;AAAA,EAClB,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,SAAS;AAAA,IACL,QAAQ;AAAA;AAAA;mCAG0BA,gCAAe;AAAA,EACrD,YAAY,QAAQ;AAChB,UAAM;AAAA,SACC;AAAA,SACA;AAAA;AAAA;AAAA,QAGL,eAAe,QAAQ;AACzB,UAAM,YAAY;AAClB,UAAM,MAAM,MAAM,MAAM,KAAK,OAAO,YAAY;AAAA,MAC5C,SAAS,EAAE,eAAe,GAAG,aAAa,OAAO;AAAA;AAErD,WAAO,MAAM,IAAI;AAAA;AAAA;;;;"} | ||||
							
								
								
									
										22
									
								
								dist/providers/google.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								dist/providers/google.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| import { OAuth2Provider, OAuth2ProviderConfig } from "./oauth2"; | ||||
| export interface GoogleProfile { | ||||
|     sub: string; | ||||
|     name: string; | ||||
|     give_name: string; | ||||
|     picture: string; | ||||
|     email: string; | ||||
|     email_verified: boolean; | ||||
|     locale: string; | ||||
| } | ||||
| export interface GoogleTokens { | ||||
|     access_token: string; | ||||
|     expires_in: number; | ||||
|     scope: string; | ||||
|     token_type: string; | ||||
|     id_token: string; | ||||
| } | ||||
| declare type GoogleOAuth2ProviderConfig = OAuth2ProviderConfig<GoogleProfile, GoogleTokens>; | ||||
| export declare class GoogleOAuth2Provider extends OAuth2Provider<GoogleProfile, GoogleTokens, GoogleOAuth2ProviderConfig> { | ||||
|     constructor(config: GoogleOAuth2ProviderConfig); | ||||
| } | ||||
| export {}; | ||||
							
								
								
									
										23
									
								
								dist/providers/google.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								dist/providers/google.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | ||||
| import { OAuth2Provider } from './oauth2.esm.js'; | ||||
| import '../helpers.esm.js'; | ||||
| import './oauth2.base.esm.js'; | ||||
| import './base.esm.js'; | ||||
| 
 | ||||
| const defaultConfig = { | ||||
|   id: "google", | ||||
|   scope: ["openid", "profile", "email"], | ||||
|   accessTokenUrl: "https://accounts.google.com/o/oauth2/token", | ||||
|   authorizationUrl: "https://accounts.google.com/o/oauth2/auth", | ||||
|   profileUrl: "https://openidconnect.googleapis.com/v1/userinfo" | ||||
| }; | ||||
| class GoogleOAuth2Provider extends OAuth2Provider { | ||||
|   constructor(config) { | ||||
|     super({ | ||||
|       ...defaultConfig, | ||||
|       ...config | ||||
|     }); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| export { GoogleOAuth2Provider }; | ||||
| //# sourceMappingURL=google.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/google.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/google.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"google.esm.js","sources":["../../src/providers/google.ts"],"sourcesContent":["import { OAuth2Provider } from \"./oauth2\";\r\nconst defaultConfig = {\r\n    id: \"google\",\r\n    scope: [\"openid\", \"profile\", \"email\"],\r\n    accessTokenUrl: \"https://accounts.google.com/o/oauth2/token\",\r\n    authorizationUrl: \"https://accounts.google.com/o/oauth2/auth\",\r\n    profileUrl: \"https://openidconnect.googleapis.com/v1/userinfo\",\r\n};\r\nexport class GoogleOAuth2Provider extends OAuth2Provider {\r\n    constructor(config) {\r\n        super({\r\n            ...defaultConfig,\r\n            ...config,\r\n        });\r\n    }\r\n}\r\n"],"names":[],"mappings":";;;;;AACA,MAAM,gBAAgB;AAAA,EAClB,IAAI;AAAA,EACJ,OAAO,CAAC,UAAU,WAAW;AAAA,EAC7B,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,YAAY;AAAA;mCAE0B,eAAe;AAAA,EACrD,YAAY,QAAQ;AAChB,UAAM;AAAA,SACC;AAAA,SACA;AAAA;AAAA;AAAA;;;;"} | ||||
							
								
								
									
										27
									
								
								dist/providers/google.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								dist/providers/google.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| var providers_oauth2 = require('./oauth2.js'); | ||||
| require('../helpers.js'); | ||||
| require('./oauth2.base.js'); | ||||
| require('./base.js'); | ||||
| 
 | ||||
| const defaultConfig = { | ||||
|   id: "google", | ||||
|   scope: ["openid", "profile", "email"], | ||||
|   accessTokenUrl: "https://accounts.google.com/o/oauth2/token", | ||||
|   authorizationUrl: "https://accounts.google.com/o/oauth2/auth", | ||||
|   profileUrl: "https://openidconnect.googleapis.com/v1/userinfo" | ||||
| }; | ||||
| class GoogleOAuth2Provider extends providers_oauth2.OAuth2Provider { | ||||
|   constructor(config) { | ||||
|     super({ | ||||
|       ...defaultConfig, | ||||
|       ...config | ||||
|     }); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| exports.GoogleOAuth2Provider = GoogleOAuth2Provider; | ||||
| //# sourceMappingURL=google.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/google.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/google.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"google.js","sources":["../../src/providers/google.ts"],"sourcesContent":["import { OAuth2Provider } from \"./oauth2\";\r\nconst defaultConfig = {\r\n    id: \"google\",\r\n    scope: [\"openid\", \"profile\", \"email\"],\r\n    accessTokenUrl: \"https://accounts.google.com/o/oauth2/token\",\r\n    authorizationUrl: \"https://accounts.google.com/o/oauth2/auth\",\r\n    profileUrl: \"https://openidconnect.googleapis.com/v1/userinfo\",\r\n};\r\nexport class GoogleOAuth2Provider extends OAuth2Provider {\r\n    constructor(config) {\r\n        super({\r\n            ...defaultConfig,\r\n            ...config,\r\n        });\r\n    }\r\n}\r\n"],"names":["OAuth2Provider"],"mappings":";;;;;;;;;AACA,MAAM,gBAAgB;AAAA,EAClB,IAAI;AAAA,EACJ,OAAO,CAAC,UAAU,WAAW;AAAA,EAC7B,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,YAAY;AAAA;mCAE0BA,gCAAe;AAAA,EACrD,YAAY,QAAQ;AAChB,UAAM;AAAA,SACC;AAAA,SACA;AAAA;AAAA;AAAA;;;;"} | ||||
							
								
								
									
										17
									
								
								dist/providers/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								dist/providers/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| export { Provider } from "./base"; | ||||
| export { GitHubOAuth2Provider } from "./github"; | ||||
| export type { GitHubProfile, GitHubTokens } from "./github"; | ||||
| export { GoogleOAuth2Provider } from "./google"; | ||||
| export type { GoogleProfile, GoogleTokens } from "./google"; | ||||
| export { FacebookOAuth2Provider } from "./facebook"; | ||||
| export type { FacebookProfile, FacebookTokens } from "./facebook"; | ||||
| export { OAuth2BaseProvider } from "./oauth2.base"; | ||||
| export type { ProfileCallback } from "./oauth2.base"; | ||||
| export { OAuth2Provider } from "./oauth2"; | ||||
| export { RedditOAuth2Provider } from "./reddit"; | ||||
| export type { RedditProfile, RedditTokens } from "./reddit"; | ||||
| export { SpotifyOAuth2Provider } from "./spotify"; | ||||
| export type { SpotifyProfile, SpotifyTokens } from "./spotify"; | ||||
| export { TwitchOAuth2Provider } from "./twitch"; | ||||
| export type { TwitchProfile, TwitchTokens } from "./twitch"; | ||||
| export { TwitterAuthProvider } from "./twitter"; | ||||
							
								
								
									
										12
									
								
								dist/providers/index.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								dist/providers/index.esm.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| export { Provider } from './base.esm.js'; | ||||
| export { GitHubOAuth2Provider } from './github.esm.js'; | ||||
| export { GoogleOAuth2Provider } from './google.esm.js'; | ||||
| export { FacebookOAuth2Provider } from './facebook.esm.js'; | ||||
| export { OAuth2BaseProvider } from './oauth2.base.esm.js'; | ||||
| export { OAuth2Provider } from './oauth2.esm.js'; | ||||
| export { RedditOAuth2Provider } from './reddit.esm.js'; | ||||
| export { SpotifyOAuth2Provider } from './spotify.esm.js'; | ||||
| export { TwitchOAuth2Provider } from './twitch.esm.js'; | ||||
| export { TwitterAuthProvider } from './twitter.esm.js'; | ||||
| import '../helpers.esm.js'; | ||||
| //# sourceMappingURL=index.esm.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/index.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/index.esm.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"} | ||||
							
								
								
									
										29
									
								
								dist/providers/index.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								dist/providers/index.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||||
| 
 | ||||
| var providers_base = require('./base.js'); | ||||
| var providers_github = require('./github.js'); | ||||
| var providers_google = require('./google.js'); | ||||
| var providers_facebook = require('./facebook.js'); | ||||
| var providers_oauth2_base = require('./oauth2.base.js'); | ||||
| var providers_oauth2 = require('./oauth2.js'); | ||||
| var providers_reddit = require('./reddit.js'); | ||||
| var providers_spotify = require('./spotify.js'); | ||||
| var providers_twitch = require('./twitch.js'); | ||||
| var providers_twitter = require('./twitter.js'); | ||||
| require('../helpers.js'); | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| exports.Provider = providers_base.Provider; | ||||
| exports.GitHubOAuth2Provider = providers_github.GitHubOAuth2Provider; | ||||
| exports.GoogleOAuth2Provider = providers_google.GoogleOAuth2Provider; | ||||
| exports.FacebookOAuth2Provider = providers_facebook.FacebookOAuth2Provider; | ||||
| exports.OAuth2BaseProvider = providers_oauth2_base.OAuth2BaseProvider; | ||||
| exports.OAuth2Provider = providers_oauth2.OAuth2Provider; | ||||
| exports.RedditOAuth2Provider = providers_reddit.RedditOAuth2Provider; | ||||
| exports.SpotifyOAuth2Provider = providers_spotify.SpotifyOAuth2Provider; | ||||
| exports.TwitchOAuth2Provider = providers_twitch.TwitchOAuth2Provider; | ||||
| exports.TwitterAuthProvider = providers_twitter.TwitterAuthProvider; | ||||
| //# sourceMappingURL=index.js.map
 | ||||
							
								
								
									
										1
									
								
								dist/providers/index.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dist/providers/index.js.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
		Reference in New Issue
	
	Block a user