We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f0ebd4 commit 633c2f8Copy full SHA for 633c2f8
src/auth/token.rs
@@ -24,12 +24,6 @@ pub async fn create_token_for_developer(
24
Ok(c) => c,
25
};
26
27
- if count == Some(5) {
28
- return Err(ApiError::BadRequest(
29
- "You have reached the max amount of tokens (5). Invalidate your tokens or use your currently active ones.".to_string(),
30
- ));
31
- }
32
-
33
if let Err(e) = sqlx::query!(
34
"INSERT INTO auth_tokens (developer_id, token) VALUES ($1, $2)",
35
id,
0 commit comments