Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
Added setup requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Mulholland committed Oct 20, 2020
1 parent a1c4c6f commit bad90d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class AuthTokenController < Knock::Oauth2CodeVerifier::AuthTokenController

# Your code to create and login user here
# e.g. user = User.find_or_create_by!(user_info[:email])
# Only requirement is that you set the @entity variable to your user object
# so that Knock can use that correct when generating the auth_token

# Then return a JWT payload; auth_token provided by Knock
render json: { token: auth_token }, status: :created
Expand Down

0 comments on commit bad90d4

Please sign in to comment.