Files
zero-fucks-given/apps/backend/config/encryption.ts
T

15 lines
293 B
TypeScript

import { defineConfig, drivers } from '@adonisjs/core/encryption'
import env from '#start/env'
const encryptionConfig = defineConfig({
default: 'app',
list: {
app: drivers.aes256gcm({
id: 'app',
keys: [env.get('APP_KEY')],
}),
},
})
export default encryptionConfig