Skip to content

Commit

Permalink
fix panic for set_jwt_location_ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
NexVeridian committed Jan 15, 2025
1 parent 2569837 commit b492d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/openapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn set_jwt_location(jwt_location: JWTLocation) -> &'static JWTLocation {
}

fn get_jwt_location() -> &'static JWTLocation {
JWT_LOCATION.get().unwrap()
JWT_LOCATION.get().unwrap_or(&JWTLocation::Bearer)
}

pub struct SecurityAddon;
Expand Down

0 comments on commit b492d68

Please sign in to comment.