coyotte508 commited on
Commit
35e151a
·
1 Parent(s): 1064a82

do not redirect for well-known

Browse files
Files changed (1) hide show
  1. src/hooks.server.ts +1 -1
src/hooks.server.ts CHANGED
@@ -139,7 +139,7 @@ export const handle: Handle = async ({ event, resolve }) => {
139
 
140
  event.locals.sessionId = auth.sessionId;
141
 
142
- if (loginEnabled && !auth.user) {
143
  if (config.AUTOMATIC_LOGIN === "true") {
144
  // AUTOMATIC_LOGIN: always redirect to OAuth flow (unless already on login or healthcheck pages)
145
  if (
 
139
 
140
  event.locals.sessionId = auth.sessionId;
141
 
142
+ if (loginEnabled && !auth.user && !event.url.pathname.startsWith(`${base}/.well-known/`)) {
143
  if (config.AUTOMATIC_LOGIN === "true") {
144
  // AUTOMATIC_LOGIN: always redirect to OAuth flow (unless already on login or healthcheck pages)
145
  if (