Sahan Amadoruge
02/17/2022, 2:51 PMCognitoJwtVerifier
which is coming from aws-jwt-verify
? I'm trying to verify my cognito JWT token manually. But when i use this i'm getting a syntax error. SyntaxError: Unexpected token '.'
What am i missing here?
import { CognitoJwtVerifier } from "aws-jwt-verify";
const verifier = CognitoJwtVerifier.create({
userPoolId: "<user_pool_id>",
tokenUse: "access", // scopes are only present on Cognito access tokens
clientId: "<client_id>"
});
try {
const payload = await verifier.verify("eyJraWQeyJhdF9oYXNoIjoidk...");
console.log("Token is valid. Payload:", payload);
} catch {
console.log("Token not valid!");
}
Seth Geoghegan
02/17/2022, 5:42 PMCarlos Daniel
02/18/2022, 2:54 PMGabriel Araújo
02/18/2022, 9:31 PM```mermaid
sequenceDiagram;
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
result:Sam Hulick
02/22/2022, 6:16 PMAshishkumar Pandey
02/22/2022, 8:18 PMJay
Seth Geoghegan
03/05/2022, 1:21 AMStack sgeoghegan-auth-service-v2-api
Status: failed
Error: Received response status [FAILED] from custom resource. Message returned: Rate exceeded (RequestId: 504a0e96-6604-4185-a300-b9d89f71d315)
Failed to deploy the app
thdxr
03/05/2022, 5:51 AMgio
03/06/2022, 2:53 PMSeth Geoghegan
03/08/2022, 6:28 PMthdxr
03/10/2022, 6:52 PMAdrián Mouly
03/11/2022, 7:06 PMthdxr
03/11/2022, 10:18 PMGjorgji Kjosev
03/12/2022, 9:14 PMapps
, services
, packages
and infra
. Each "service" should have its package.json "main"
point to an exported stack, which may take dependencies as props. Each app (there will be two really, web and mobile app) similarly exports a "main" which is a stack (well a mobile app doesn't, a web one does). Packages are libraries, their main
points to the library entrypoint, and should be usable from any of the frontends or backends (shared types, configs, validations go here). infra
basically contains the main SST index which ties the services and front ends together. Thoughts? 😅thdxr
03/13/2022, 7:54 PMJay
Slackbot
03/15/2022, 5:54 PMthdxr
03/16/2022, 8:58 PMSean Matheson
03/17/2022, 9:46 PMJon Holman
03/22/2022, 2:17 PMSeth Geoghegan
03/23/2022, 4:23 PMthdxr
03/23/2022, 6:51 PMmanitej
03/24/2022, 2:16 AMmanitej
03/24/2022, 1:11 PMJay
Jay