Skip to content

500 error when navigation directly to protected page #479

@jlemonz

Description

@jlemonz

Using latest versions.
When navigation directly to a protected page configured in redirect options will show a 500 error. When going to the route with a nuxtlink is working correct. Only when i type in the page for example incognito window will cause the issue.

my config
supabase: {
redirect: true,
redirectOptions: {
login: "/account/inloggen",
callback: "/dashboard",
include: ["/dashboard", "/dashboard/**"],
exclude: [],
},

So to reproduce. Set a protected page. I go there directly incognito this wont redirect you to login page but gives a 500 error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions