Skip to content

Commit

Permalink
CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Feb 22, 2024
1 parent 58ea7c4 commit b14c422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to `wp-rest-guard` will be documented in this file.
## v1.2.0 - 2024-02-22

- Add support for authenticated users interacting with the REST API.
- Allow settings to be completely disabled via code.
- Increase the default length of the JWT secret to 32 characters.

## v1.1.1 - 2024-01-15

Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ function get_jwt_audience(): string {
function get_jwt_secret(): string {
// Generate the JWT secret if it does not exist.
if ( empty( get_option( 'rest_api_guard_jwt_secret' ) ) ) {
update_option( 'rest_api_guard_jwt_secret', wp_generate_password( 24, false ) );
update_option( 'rest_api_guard_jwt_secret', wp_generate_password( 32, false ) );
}

/**
Expand Down

0 comments on commit b14c422

Please sign in to comment.