Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sidebase/nuxt-auth
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.6.6
Choose a base ref
...
head repository: sidebase/nuxt-auth
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.6.7
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jan 22, 2024

  1. Revert: #644

    zoey-kaiser committed Jan 22, 2024
    Copy the full SHA
    67d33bb View commit details
  2. release: 0.6.7

    zoey-kaiser committed Jan 22, 2024
    Copy the full SHA
    0bc80f7 View commit details
Showing with 1 addition and 5 deletions.
  1. +1 −1 package.json
  2. +0 −4 src/runtime/middleware/auth.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidebase/nuxt-auth",
"version": "0.6.6",
"version": "0.6.7",
"license": "MIT",
"type": "module",
"exports": {
4 changes: 0 additions & 4 deletions src/runtime/middleware/auth.ts
Original file line number Diff line number Diff line change
@@ -85,10 +85,6 @@ export default defineNuxtRouteMiddleware((to) => {
}

if (authConfig.provider.type === 'authjs') {
// If the middleware runs on a pre-render of the route, do not call signIn, as this is a client method
if (process.server) {
return
}
const signInOptions: Parameters<typeof signIn>[1] = { error: 'SessionRequired', callbackUrl: determineCallbackUrl(authConfig, () => to.fullPath) }
// @ts-ignore This is valid for a backend-type of `authjs`, where sign-in accepts a provider as a first argument
return signIn(undefined, signInOptions) as ReturnType<typeof navigateToAuthPages>