1 | import { FromSchema, authenticationSettingsSchema } from '@feathersjs/schema'
|
2 |
|
3 | export const defaultOptions = {
|
4 | authStrategies: [] as string[],
|
5 | jwtOptions: {
|
6 | header: { typ: 'access' }, // by default is an access token but can be any type
|
7 | audience: 'https://yourdomain.com', // The resource server where the token is processed
|
8 | issuer: 'feathers', // The issuing server, application or resource
|
9 | algorithm: 'HS256',
|
10 | expiresIn: '1d'
|
11 | }
|
12 | }
|
13 |
|
14 | export { authenticationSettingsSchema }
|
15 |
|
16 | export type AuthenticationConfiguration = FromSchema<typeof authenticationSettingsSchema>
|