Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to manage multiple callbacks for each user role? #40

Closed
iamaz007 opened this issue Sep 20, 2021 · 3 comments
Closed

How to manage multiple callbacks for each user role? #40

iamaz007 opened this issue Sep 20, 2021 · 3 comments

Comments

@iamaz007
Copy link

I am working on project where we have 2 different types of users, "doctors" and "patient", I have setup doctor sign in with apple, but how I can add another redirect url for "patient" too. so when Patient will login they will go to there controller as same doctor is doing
Note: I have added both callback in apple account, only issue is remaining from website side, when I call from patient login it still go to doctor controller after callback.

@mikebronner
Copy link
Owner

HI @iamaz007, unfortunately that is not something that this package would be able to solve for you. You would need a way to differentiate between doctor and patient user records, and then redirect them in middleware to their appropriate location.

@iamaz007
Copy link
Author

I tried with session storage and cookies too, doctor and patient have separate login, so when they click on login I save their sessions, I have tested with Facebook and LinkedIn in Socialite they are working fine, but when I do this with apple login, apple clears all the sessions and cookies, that is why I am facing difficulty in both user authentication.
Is there any parameter I can send with apple sign in, so on callback I can identify user

@mikebronner
Copy link
Owner

@iamaz007 I don't think that would work. I don't know that Apple would handle that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants