🎨 Run Prettier

This commit is contained in:
RaviAnand Mohabir 2022-02-23 11:25:26 +01:00
parent 5020776377
commit 57b45955cb
3 changed files with 7 additions and 11 deletions

View File

@ -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);