Closed websocket98765 closed 2 years ago
The protocol can be set when creating a SvelteKitAuth object.
export const appAuth: SvelteKitAuth = new SvelteKitAuth({ providers: [oauthProvider], protocol: 'http' });
Thank you! I did the following
import { dev } from '$app/env';
export const appAuth = new SvelteKitAuth({
protocol: dev ? 'http' : 'https',
providers: [
// ...
],
// ...
});
sk-auth
defaults tohttps://localhost:3000/api/auth/callback/github
with no ability to change it successfully.Note the
s
in https.This is problematic because for localtesting where
https
isn't used.