1
0
Fork 0
mirror of synced 2024-07-01 04:30:59 +12:00

chore: fmt

This commit is contained in:
loks0n 2024-01-13 10:11:25 +00:00
parent 521cb963a5
commit 0a0479f4c5
2 changed files with 3 additions and 3 deletions

View file

@ -777,7 +777,7 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
$duration = $project->getAttribute('auths', [])['duration'] ?? Auth::TOKEN_EXPIRATION_LOGIN_LONG;
$expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), $duration));
// If the `token` param is set, we will return the token in the query string
if ($state['token']) {
$secret = Auth::tokenGenerator(Auth::TOKEN_LENGTH_OAUTH2);

View file

@ -155,10 +155,10 @@ class OpenAPI3 extends Format
if (empty($routeSecurity)) {
if (!$route->getLabel('sdk.hideServer', false)) {
$sdkPlatforms[] = APP_PLATFORM_SERVER;
}
}
if (!$route->getLabel('sdk.hideClient', false)) {
$sdkPlatforms[] = APP_PLATFORM_CLIENT;
}
}
}
$temp = [