feat: Google OAuth for login & signup (#6346)
This PR adds Google OAuth for all existing users, allowing users to log in or sign up via their Google account. --------- Co-authored-by: Pranav Raj S <pranav@chatwoot.com> Co-authored-by: Fayaz Ahmed <15716057+fayazara@users.noreply.github.com> Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
Rails.application.routes.draw do
|
||||
# AUTH STARTS
|
||||
match 'auth/:provider/callback', to: 'home#callback', via: [:get, :post]
|
||||
mount_devise_token_auth_for 'User', at: 'auth', controllers: {
|
||||
confirmations: 'devise_overrides/confirmations',
|
||||
passwords: 'devise_overrides/passwords',
|
||||
sessions: 'devise_overrides/sessions',
|
||||
token_validations: 'devise_overrides/token_validations'
|
||||
token_validations: 'devise_overrides/token_validations',
|
||||
omniauth_callbacks: 'devise_overrides/omniauth_callbacks'
|
||||
}, via: [:get, :post]
|
||||
|
||||
## renders the frontend paths only if its not an api only server
|
||||
|
||||
Reference in New Issue
Block a user