Skip to content

Commit 633c2f8

Browse files
committed
fix: remove auth token cap
1 parent 9f0ebd4 commit 633c2f8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/auth/token.rs

-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ pub async fn create_token_for_developer(
2424
Ok(c) => c,
2525
};
2626

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-
3327
if let Err(e) = sqlx::query!(
3428
"INSERT INTO auth_tokens (developer_id, token) VALUES ($1, $2)",
3529
id,

0 commit comments

Comments
 (0)