chore: fmt
This commit is contained in:
parent
521cb963a5
commit
0a0479f4c5
2 changed files with 3 additions and 3 deletions
|
@ -777,7 +777,7 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
|
||||||
|
|
||||||
$duration = $project->getAttribute('auths', [])['duration'] ?? Auth::TOKEN_EXPIRATION_LOGIN_LONG;
|
$duration = $project->getAttribute('auths', [])['duration'] ?? Auth::TOKEN_EXPIRATION_LOGIN_LONG;
|
||||||
$expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), $duration));
|
$expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), $duration));
|
||||||
|
|
||||||
// If the `token` param is set, we will return the token in the query string
|
// If the `token` param is set, we will return the token in the query string
|
||||||
if ($state['token']) {
|
if ($state['token']) {
|
||||||
$secret = Auth::tokenGenerator(Auth::TOKEN_LENGTH_OAUTH2);
|
$secret = Auth::tokenGenerator(Auth::TOKEN_LENGTH_OAUTH2);
|
||||||
|
|
|
@ -155,10 +155,10 @@ class OpenAPI3 extends Format
|
||||||
if (empty($routeSecurity)) {
|
if (empty($routeSecurity)) {
|
||||||
if (!$route->getLabel('sdk.hideServer', false)) {
|
if (!$route->getLabel('sdk.hideServer', false)) {
|
||||||
$sdkPlatforms[] = APP_PLATFORM_SERVER;
|
$sdkPlatforms[] = APP_PLATFORM_SERVER;
|
||||||
}
|
}
|
||||||
if (!$route->getLabel('sdk.hideClient', false)) {
|
if (!$route->getLabel('sdk.hideClient', false)) {
|
||||||
$sdkPlatforms[] = APP_PLATFORM_CLIENT;
|
$sdkPlatforms[] = APP_PLATFORM_CLIENT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp = [
|
$temp = [
|
||||||
|
|
Loading…
Reference in a new issue