Conditionnal oauth providers #4721
Unanswered
benjibenoit
asked this question in
Help
Replies: 1 comment 1 reply
-
Just define both and use the one based upon the environment. import app from '@adonisjs/core/services/app'
ally.use(app.inProduction ? 'google' : 'github').redirect() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team!
I was wondering how do you do to set conditionnal oauth provider. For exemple I want github on localhost and google for production (I can't setup google for localhost... thx google).
I tried something like this :
But it break the ally.use() that return
If anyone has an idea how I can do this, I take it!
Beta Was this translation helpful? Give feedback.
All reactions