Skip to content

Commit

Permalink
accesstoekn 10초 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
BYEONGRYEOL committed Sep 3, 2024
1 parent a38cb0f commit 26a5930
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class JWTConstants {
public static final String ROLE = "role";
public static final String JWT_HEADER = "Authorization";
public static final String JWT_PREFIX = "Bearer ";
public static final Long ACCESS_TOKEN_EXPIRATION_TIME = 60 * 20 * 1000L;
public static final Long ACCESS_TOKEN_EXPIRATION_TIME = 10 * 1000L;
public static final Long REFRESH_TOKEN_EXPIRATION_TIME = 60 * 60 * 24 * 7 * 2 * 1000L;

}
17 changes: 17 additions & 0 deletions set-actions-secret.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Set GitHub secrets using PowerShell

$files = @{
"DOCKER_COMPOSE_DEPLOY" = "./docker/deploy/docker-compose.yml"
"DOCKER_COMPOSE_STAGING" = "./docker/staging/docker-compose.yml"
"APPLICATION_DEPLOY" = "./genti-api/src/main/resources/application-deploy.yaml"
"APPLICATION_SECRET" = "./genti-api/src/main/resources/application-secret.yaml"
"APPLICATION_STAGING" = "./genti-api/src/main/resources/application-staging.yaml"
}

foreach ($secretName in $files.Keys) {
$filePath = $files[$secretName]
$content = Get-Content -Path $filePath -Raw
gh secret set $secretName -b"$content"
}

curl https://discord.com/api/webhooks/1280150154510602381/u-noRMoiACzAKzcQL1JdWrP-CcUfcJsJlvRahRBSQoPFopFhRqBuLrZaNG58uYmq79Ur

0 comments on commit 26a5930

Please sign in to comment.