diff --git a/src/nnid/oauth/generate_token.rs b/src/nnid/oauth/generate_token.rs index 0f16371..9383359 100644 --- a/src/nnid/oauth/generate_token.rs +++ b/src/nnid/oauth/generate_token.rs @@ -97,7 +97,7 @@ impl TokenReturnData { async fn new_with_cert(pid: i32, cert: Option<&[u8]>, pool: &Pool) -> Self { let token = create_token(pool, pid, AUTH_TOKEN, None, None).await; - let refresh_token = create_token(pool, pid, AUTH_REFRESH_TOKEN, None, None).await; + let refresh_token = create_token(pool, pid, AUTH_REFRESH_TOKEN, None, cert).await; Self { token,