feat(fullstack): Add JWT validation
This commit is contained in:
@@ -7,7 +7,17 @@ export const auth = betterAuth({
|
||||
database: new Database('./sqlite.db'),
|
||||
emailAndPassword: { enabled: true, autoSignIn: false },
|
||||
plugins: [
|
||||
jwt(),
|
||||
jwt({
|
||||
jwt: {
|
||||
issuer: 'http://192.168.178.105:3001'
|
||||
},
|
||||
jwks: {
|
||||
keyPairConfig: {
|
||||
// Supported by NimbusJwtDecoder
|
||||
alg: 'ES512'
|
||||
}
|
||||
}
|
||||
}),
|
||||
organization({
|
||||
async sendInvitationEmail(data) {
|
||||
console.log('Sending invitation email', data)
|
||||
|
||||
Reference in New Issue
Block a user