Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Mar 2, 2024
1 parent 8e5240e commit 5380ae5
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/houdini/src/runtime/router/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ export async function handle_request(args: ServerHandlerArgs): Promise<Response
const plugin_config = args.config.router ?? {}
// if the project is configured to authorize users by redirect then
// we might need to set the session value
if (
plugin_config.auth &&
'redirect' in plugin_config.auth &&
args.url.startsWith(plugin_config.auth.redirect)
) {
return await redirect_auth(args)
} else {
console.log('skipping redirect')
}
// if (
// false &&
// plugin_config.auth &&
// 'redirect' in plugin_config.auth &&
// args.url.startsWith(plugin_config.auth.redirect)
// ) {
// return await redirect_auth(args)
// }
}

async function redirect_auth(args: ServerHandlerArgs): Promise<Response> {
Expand Down

0 comments on commit 5380ae5

Please sign in to comment.