UNPKG

590 BPlain TextView Raw
1import { FromSchema, authenticationSettingsSchema } from '@feathersjs/schema'
2
3export 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
14export { authenticationSettingsSchema }
15
16export type AuthenticationConfiguration = FromSchema<typeof authenticationSettingsSchema>