fix: allow basic auth on token generation

This commit is contained in:
DJMrTV 2025-06-06 11:59:45 +02:00
commit 07979bf90e

View file

@ -5,7 +5,7 @@ use crate::nnid::oauth::generate_token::token_type::AUTH_TOKEN;
use crate::Pool;
#[get("/api/v2/oauth2/generate_token")]
pub async fn generate_token(pool: &State<Pool>, auth: Auth<true>) -> String{
pub async fn generate_token(pool: &State<Pool>, auth: Auth<false>) -> String{
let pool = pool.inner();