Extend Laravel Sanctum scheme/provider to support 2FA #1708
sts-ryan-holton
started this conversation in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to get 2FA working with my Laravel Sanctum provider in my project. Previously I was using the local scheme and had 2FA working by creating a custom scheme and adding a block of code after the main request to return a response, I will attach this now:
custom scheme for Local
However, Laravel Sanctum appears to be using the cookie scheme and calling the login method from the local scheme? But when I add the local scheme's login function to a new custom scheme that includes the cookie functionality it doesn't send the CSRF request and everything else needed, what am I doing wrong?
My attempt at creating a Laravel Sanctum override scheme
Beta Was this translation helpful? Give feedback.
All reactions