logto-io / js

🤓 Logto JS SDKs.
https://docs.logto.io/quick-starts/
MIT License
61 stars 40 forks source link

fix(next-sample): revise nextjs sample profile-ssr page redirect location #588

Closed xiaohanyu closed 9 months ago

xiaohanyu commented 10 months ago

The correct redirect location should be '/api/logto/sign-in' instead of '/api/logto/login'.

Summary

I am not sure whether export default logtoClient.handleAuthRoutes() has changed route definition, the correct sign in route should be /sign-in instead of /login.

Testing

Ref: https://github.com/logto-io/logto/blob/f539b0851d42eba974032582a8094a540c9f1246/packages/console/src/assets/docs/guides/web-next/README.mdx#L97

Checklist