#✅ Endpoint for directus-sdk login?
9 messages · Page 1 of 1 (latest)
Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:
- Adding an explanation of exactly what you're trying to achieve.
- Adding any and all related code or previous attempts.
- Describing the exact issue or error you are facing.
- Posting any screenshots if applicable.
- Reading through https://stackoverflow.com/help/how-to-ask.
When you're done with this thread, please close it. Thanks! ✨
(If you have a support agreement and need help, please contact the core team via email.)
you could make your own endpoint, yes
you would have to create an row inside of directus_sessions and use that id as refresh token (if im correct)
We have written a custom endpoint in Directus for login and would only need to change the url in the directus-sdk typescript from /auth/login to /custom_login.
In directus-sdk we use the command get auth(): IAuthHandler;
The question is, if you can change the url here, which is called in the background.
you can do 2 things:
- create a new class with the desired auth logic
- use directusdk.transport.post("/whateverendpoint",data) instead of the normal .auth
Thank you, it works 🙂
✅ Endpoint for directus-sdk login?
This post is now closed. If you want or need to continue this topic, just send another message and it will be unarchived.