Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

update default token_secret_signature_key #256

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/generators/templates/knock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
## Configure the key used to sign tokens.
##
## Default:
# config.token_secret_signature_key = -> { Rails.application.secrets.secret_key_base }
# config.token_secret_signature_key = -> { Rails.application.credentials.secret_key_base }

## If using Auth0, uncomment the line below
# config.token_secret_signature_key = -> { JWT.base64url_decode Rails.application.secrets.auth0_client_secret }
Expand Down
2 changes: 1 addition & 1 deletion lib/knock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Knock
self.token_signature_algorithm = 'HS256'

mattr_accessor :token_secret_signature_key
self.token_secret_signature_key = -> { Rails.application.secrets.secret_key_base }
self.token_secret_signature_key = -> { Rails.application.credentials.secret_key_base }

mattr_accessor :token_public_key
self.token_public_key = nil
Expand Down