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:
parent
d615f1392e
commit
38aab46534
4 changed files with 9 additions and 17 deletions
|
@ -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 }));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue