Skip to content

Commit

Permalink
Create secret key for JWT authentication
Browse files Browse the repository at this point in the history
Fixes #418.
  • Loading branch information
mraible committed Nov 1, 2024
1 parent c3287b3 commit 4ad091b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/micronaut/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class extends BaseApplicationGenerator {
get [BaseApplicationGenerator.CONFIGURING]() {
return this.asConfiguringTaskGroup({
async configuringTemplateTask() {
if (this.jhipsterConfigWithDefaults.authenticationType === 'oauth2') {
if (this.jhipsterConfigWithDefaults.authenticationType === 'jwt') {
this.jhipsterConfig.jwtSecretKey = this.jhipsterConfig.jwtSecretKey ?? createBase64Secret(64, this.options.reproducibleTests);
}
},
Expand Down

0 comments on commit 4ad091b

Please sign in to comment.