Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Works with "next export"? #570

Closed
all-the-rice opened this issue Aug 11, 2020 · 5 comments
Closed

Works with "next export"? #570

all-the-rice opened this issue Aug 11, 2020 · 5 comments
Labels
incomplete Insufficient reproduction. Without more info, we won't take further actions/provide help. question Ask how to do something or how something works stale Did not receive any activity for 60 days

Comments

@all-the-rice
Copy link

Excuse me if I'm missing something simple. Is it possible to use next-auth when using next export?

Maybe I just need a dynamic routing stub in next.congig.js?

Not having any luck yet. Looking really good other than that. Thank you!

@all-the-rice all-the-rice added the question Ask how to do something or how something works label Aug 11, 2020
@all-the-rice
Copy link
Author

all-the-rice commented Aug 11, 2020

Current behavior is it builds and exports fine but then 404 on /api/auth/signin even when I add '/api/auth/signin': { page: '/api/auth/[...nextauth]', }, or '/api/auth/signin': { page: '/api/auth/signin', }, to exportPathMap in next.config.js

@iaincollins iaincollins added the incomplete Insufficient reproduction. Without more info, we won't take further actions/provide help. label Aug 13, 2020
@shaunchander
Copy link

If I'm not mistaken, next export only works for when all pages on your website can be pre-rendered (generated to static HTML). Because Next Auth requires some level of server-side rendering for the signin pages, I don't believe next export would work.

@stale
Copy link

stale bot commented Dec 5, 2020

Hi there! It looks like this issue hasn't had any activity for a while. It will be closed if no further activity occurs. If you think your issue is still relevant, feel free to comment on it to keep ot open. Thanks!

@stale stale bot added the wontfix This will not be worked on label Dec 5, 2020
@balazsorban44 balazsorban44 added stale Did not receive any activity for 60 days and removed wontfix This will not be worked on labels Dec 5, 2020
@stale
Copy link

stale bot commented Dec 12, 2020

Hi there! It looks like this issue hasn't had any activity for a while. To keep things tidy, I am going to close this issue for now. If you think your issue is still relevant, just leave a comment and I will reopen it. (Read more at #912) Thanks!

@stale stale bot closed this as completed Dec 12, 2020
@ElanHasson
Copy link

Hi @balazsorban44,

To clarify, next-auth isn't appropriate to use when using next export? I'm able to get my jwt token returned for my client-side only app by using response_type = id_token token, access_type = 'online'.

Should I change my redirect URI to point to my own page with client side logic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete Insufficient reproduction. Without more info, we won't take further actions/provide help. question Ask how to do something or how something works stale Did not receive any activity for 60 days
Projects
None yet
Development

No branches or pull requests

5 participants