Skip to content

Commit

Permalink
fix: secretFactory is now used in client update
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Sep 26, 2018
1 parent 75e7a3f commit 0923f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/actions/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ module.exports = function registrationAction(provider) {
// TODO: support for expiring dynamic registration clients
if (secretRequired) {
Object.assign(properties, {
client_secret: crypto.randomBytes(48).toString('base64'),
client_secret: secretFactory(),
client_secret_expires_at: 0,
});
} else {
Expand Down

0 comments on commit 0923f52

Please sign in to comment.