Skip to content

Commit

Permalink
Update src/runtime/composables/local/useAuth.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-ru authored Sep 19, 2024
1 parent 68901de commit 8b0b538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/local/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const signIn: SignInFunc<Credentials, any> = async (credentials, signInOptions,
let { callbackUrl } = signInOptions ?? {}
if (typeof callbackUrl === 'undefined') {
if (useRoute()?.query?.redirect) {
callbackUrl = useRoute().query.redirect?.toString()
callbackUrl = useRoute().query.redirect.toString()

Check failure on line 64 in src/runtime/composables/local/useAuth.ts

View workflow job for this annotation

GitHub Actions / test-module

Object is possibly 'null'.
}
else {
callbackUrl = await determineCallbackUrl(runtimeConfig.public.auth, () => getRequestURLWN(nuxt))
Expand Down

0 comments on commit 8b0b538

Please sign in to comment.