Skip to content

cody-elhard/nextjs-rails-omniauth-demo

Repository files navigation

NextJS w/ Rails omniauth demo

sequenceDiagram
    participant NextJS
    participant Rails
    participant Google Oauth Server
    NextJS->>Google Oauth Server: POST /google/oauth
    Google Oauth Server->>Rails: users/auth/google_oauth2/callback
    Rails->>NextJS: JsonWebToken(current_user_credentials)
    NextJS->>Rails: /graphql?token=JsonWebToken

Getting started

  • cd backend && bundle && rails s
  • cd frontend && yar install && yarn dev
  • yarn run codegen (if you want to generate types)

Set secrets (setup google oauth2 client credentials, https://developers.google.com/identity/protocols/oauth2)

OmniAuth.App.Demo.mov
















Donations

Venmo @Cody-Elhard

  • If this saved you time, cast your vote that you would like more helpful projects in the future.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published