add policy api

This commit is contained in:
weisd
2025-01-22 11:08:59 +08:00
parent 67dc3bc658
commit e13ffc8137
6 changed files with 322 additions and 5 deletions
+1 -1
View File
@@ -1098,7 +1098,7 @@ where
fn update_user_with_claims(&self, k: &str, u: UserIdentity) -> Result<()> {
let mut u = u;
if u.credentials.session_token.is_empty() {
if !u.credentials.session_token.is_empty() {
u.credentials.claims = Some(extract_jwt_claims(&u)?);
}