AshAuthentication with an already existing auth flow
I'm integrating Ash with a system that already has an authentication workflow. It's a passwordless flow that sends an OTP to the user's email and then generates a token for them, assuming everything checks out. I see that many Ash libraries integrate nicely with AshAuthentication. I noticed in the documentation that there's a method to integrate custom strategies. However, as I'm new to this, I'm having trouble fully understanding the documentation. The link can be found here: https://hexdocs.pm/ash_authentication/custom-strategy.html
Can I integrate our existing auth flow into AshAuthentication using the custom strategy model? These OTPs are used for registration, verifying the user before updating certain information (e.g., updating their email), verifying their new email, and logging in. If it's possible, I'd like to integrate it to benefit from using it. I'll just have to buckle down and do my best to learn.
If there's an easier way to integrate while maintaining compatibility with other Ash libraries, please let me know. Ultimately, I want my authentication system to work seamlessly with all the resources and tools I add.
Can I integrate our existing auth flow into AshAuthentication using the custom strategy model? These OTPs are used for registration, verifying the user before updating certain information (e.g., updating their email), verifying their new email, and logging in. If it's possible, I'd like to integrate it to benefit from using it. I'll just have to buckle down and do my best to learn.
If there's an easier way to integrate while maintaining compatibility with other Ash libraries, please let me know. Ultimately, I want my authentication system to work seamlessly with all the resources and tools I add.
