mirror of
https://github.com/strapi/strapi.git
synced 2025-07-24 17:40:18 +00:00
35 lines
743 B
JavaScript
35 lines
743 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
default: ({ env }) => ({
|
|
jwtSecret: env('JWT_SECRET'),
|
|
jwt: {
|
|
expiresIn: '30d',
|
|
},
|
|
ratelimit: {
|
|
interval: 60000,
|
|
max: 10,
|
|
},
|
|
layout: {
|
|
user: {
|
|
actions: {
|
|
create: 'contentManagerUser.create', // Use the User plugin's controller.
|
|
update: 'contentManagerUser.update',
|
|
},
|
|
},
|
|
},
|
|
callback: {
|
|
validate(callbackURL, provider) {
|
|
const defaultCallbackURL = provider.callback;
|
|
|
|
if (callbackURL !== defaultCallbackURL) {
|
|
throw new Error(
|
|
`Forbidden callback provided: ${callbackURL} !== ${defaultCallbackURL})`
|
|
);
|
|
}
|
|
},
|
|
},
|
|
}),
|
|
validator() {},
|
|
};
|