Split up files and did some consistency work.
This commit is contained in:
@@ -33,7 +33,7 @@ where
|
||||
let pool = PgPool::from_ref(state);
|
||||
|
||||
let token_hash = Secret::from(credentials.0).hash();
|
||||
let token = repository::tokens::get_access_token_by_hash(&pool, &token_hash)
|
||||
let token = repository::access_tokens::get_by_hash(&pool, &token_hash)
|
||||
.await
|
||||
.map_err(BearerError::Repository)?
|
||||
.ok_or(BearerError::InvalidCredentials)?;
|
||||
|
||||
Reference in New Issue
Block a user