Skip to content

How to customize the baseurl of /api/_auth/session #441

@wodepig

Description

@wodepig

Nuxt auth utils will send a request to/api/_auth/session to obtain user data after logging in successfully, which works normally in local mode.
But with tauri packaging, the full request address becomes
http://tauri.localhost/api/_auth/session, but this address is not my background address, so it will return html. How can I set his baseurl to let him access my real background?

Since there is no backstage after tauri is packaged, this request will report an error. I think setting my own backstage address should solve this problem.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions