-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I create this sst dynamo DB resource #138
Comments
If you are using SST you need to create this yourself: const authTable = new sst.aws.Dynamo('LambdaAuthTable', {
fields: {
pk: 'string',
sk: 'string',
},
ttl: 'expiry',
primaryIndex: {
hashKey: 'pk',
rangeKey: 'sk',
},
}); And then link it to your auth handler:
|
This is what I added to my stack and is working
|
If you're using the const auth = new sst.aws.Auth('Auth', {
authorizer: {
handler: 'packages/app-backend/src/auth.handler',
},
}); And then you don't have to specify storage it in your |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
openauth/examples/issuer/lambda/authorizer.ts
Line 17 in fe8d37c
There is no reference on how to create the dynamo DB resource for auth in the example code or on the sst page. What is the table structure?
The text was updated successfully, but these errors were encountered: