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
|
@ -11,7 +11,7 @@ use crate::{
|
|||
error::Error,
|
||||
schema::*,
|
||||
utils::{
|
||||
PASSWORD_REGEX, generate_access_token, generate_refresh_token, refresh_token_cookie,
|
||||
PASSWORD_REGEX, generate_access_token, generate_refresh_token, new_refresh_token_cookie,
|
||||
user_uuid_from_identifier,
|
||||
},
|
||||
};
|
||||
|
@ -89,6 +89,6 @@ pub async fn response(
|
|||
.await?;
|
||||
|
||||
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