Skip to content

Commit 32599d1

Browse files
committed
Add exammple for setting redirect_uri
1 parent da8fba2 commit 32599d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/omni_auth.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#
1111
provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], scope: 'email,profile'
1212

13+
# Custom redirect_uri
14+
#
15+
# provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], scope: 'email,profile', redirect_uri: 'https://localhost:3000/redirect'
16+
1317
# Manual setup for offline access with a refresh token.
1418
#
1519
# provider :google_oauth2, ENV['GOOGLE_KEY'], ENV['GOOGLE_SECRET'], access_type: 'offline'

0 commit comments

Comments
 (0)