mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2024-11-20 19:07:20 +01:00
🎨 Format and lint code
This commit is contained in:
parent
d980240fd9
commit
35f48c0cb5
@ -15,10 +15,7 @@ export default [
|
|||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [esbuild(), multiInput()],
|
||||||
esbuild(),
|
|
||||||
multiInput(),
|
|
||||||
],
|
|
||||||
external: [
|
external: [
|
||||||
...Object.keys(globals),
|
...Object.keys(globals),
|
||||||
"@sveltejs/kit/assets/runtime/app/navigation",
|
"@sveltejs/kit/assets/runtime/app/navigation",
|
||||||
|
@ -8,7 +8,11 @@ export interface OAuth2BaseProviderConfig extends ProviderConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export abstract class OAuth2BaseProvider<T extends OAuth2BaseProviderConfig> extends Provider<T> {
|
export abstract class OAuth2BaseProvider<T extends OAuth2BaseProviderConfig> extends Provider<T> {
|
||||||
abstract getAuthorizationUrl(request: ServerRequest, auth: Auth, state: string): string | Promise<string>;
|
abstract getAuthorizationUrl(
|
||||||
|
request: ServerRequest,
|
||||||
|
auth: Auth,
|
||||||
|
state: string,
|
||||||
|
): string | Promise<string>;
|
||||||
abstract getTokens(code: string, redirectUri: string): any | Promise<any>;
|
abstract getTokens(code: string, redirectUri: string): any | Promise<any>;
|
||||||
abstract getUserProfile(tokens: any): any | Promise<any>;
|
abstract getUserProfile(tokens: any): any | Promise<any>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user