1
0
Fork 0
forked from gorb/backend

style: rename refresh_token_cookie() to new_refresh_token_cookie() and fix error message when no refresh_token is found on refresh

This commit is contained in:
Radical 2025-05-31 14:41:29 +02:00
parent d615f1392e
commit 38aab46534
4 changed files with 9 additions and 17 deletions

View file

@ -21,7 +21,7 @@ use crate::{
},
utils::{
EMAIL_REGEX, PASSWORD_REGEX, USERNAME_REGEX, generate_access_token, generate_refresh_token,
refresh_token_cookie,
new_refresh_token_cookie,
},
};
@ -146,7 +146,7 @@ pub async fn res(
.await?;
return Ok(HttpResponse::Ok()
.cookie(refresh_token_cookie(refresh_token))
.cookie(new_refresh_token_cookie(refresh_token))
.json(Response { access_token }));
}