Spaces:
Build error
Build error
File size: 432 Bytes
64d3841 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import { redirect } from "@sveltejs/kit";
import { getOIDCAuthorizationUrl, getRedirectURI } from "$lib/server/auth";
export const actions = {
default: async function ({ url, locals }) {
// TODO: Handle errors if provider is not responding
const authorizationUrl = await getOIDCAuthorizationUrl(
{ redirectURI: getRedirectURI(url) },
{ sessionId: locals.sessionId }
);
throw redirect(303, authorizationUrl);
},
};
|