[auth-js] How to trigger actual sign-in
I've read the docs at Auth.js and the examples on the Hono adapter page but I can't figure out what I actually need to call to trigger sign-in. The auth.js pages don't have anything for Hono or even express and the adapter page doesn't show actual sign-in anywhere so far as I saw.
Is there an example somewhere that shows how this can be done?
Are you using any frontend framework?
Sorry I missed this before. I'm using Hono which doesn't have much fron-endyness I think. It turned out I somehow wasn't finding the correct URL in the docs and sort of had to guess at it and eventually got it to trigger, not sure if there's somewhere that it could be made more prominent.
@bkerin @sourabpramanik I'm in the same situation. Do you remember the URL that makes the login trigger (or generates a redirect URL)?
For those who come across this issue later:
- There is currently an issue preventing this from working normally. The workaround requires setting
basePathin the auth config. - The types that you can use to make a URL are in the Auth.js docs, e.g.
signin, - If you set your
basePathto/api/auththe magic URL to sign in is/api/auth/signin
Is there anyway to use this middleware without react.js?