js icon indicating copy to clipboard operation
js copied to clipboard

bug: Not able to set redirect URL for NuxtJS Module.

Open funkel1989 opened this issue 7 months ago • 2 comments

Describe the bug

The @logto/nuxt module does not allow a custom redirect URL. I need this because my nuxtjs site is hosted with its server on aws lambda backed by api gateway and its static content on an s3 bucket. This is brought together with both origins in aws cloudfront. Bottom line is, the code currently gets redirect URL via the HREF and thats happening on the server which means the callback URL is to the URL of the API gateway which doesn't have a cert on it and doesn't actually host the entire frontend. I need to be able to tell it that its URL is that of the actual website URL to the callback passes through cloudfront and gets correctly routed.

Expected behavior

I'd like to be able to pass in a redirectURL that is expected by my site.

How to reproduce?

Look at your exported type and Code, this is not allowed the way it is currently written

Context

  • [X] Logto Cloud
  • [ ] Self-hosted
    • [ ] Container (Docker image)
    • [ ] Raw Node.js

funkel1989 avatar Jul 05 '24 17:07 funkel1989