mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-05-07 01:15:31 +02:00
🎨 Run Prettier
This commit is contained in:
parent
5020776377
commit
57b45955cb
10
src/auth.ts
10
src/auth.ts
@ -46,12 +46,11 @@ export class Auth {
|
||||
}
|
||||
|
||||
async getToken(headers: any) {
|
||||
|
||||
if (!headers.get('cookie')) {
|
||||
if (!headers.get("cookie")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const cookies = cookie.parse(headers.get('cookie'));
|
||||
const cookies = cookie.parse(headers.get("cookie"));
|
||||
|
||||
if (!cookies.svelteauthjwt) {
|
||||
return null;
|
||||
@ -114,10 +113,7 @@ export class Auth {
|
||||
return redirect;
|
||||
}
|
||||
|
||||
async handleProviderCallback(
|
||||
event: RequestEvent,
|
||||
provider: Provider,
|
||||
): Promise<EndpointOutput> {
|
||||
async handleProviderCallback(event: RequestEvent, provider: Provider): Promise<EndpointOutput> {
|
||||
const { headers } = event.request;
|
||||
const { url } = event;
|
||||
const [profile, redirectUrl] = await provider.callback(event, this);
|
||||
|
Loading…
Reference in New Issue
Block a user