This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* An asynchronous bootstrap function that runs before | |
* your application gets started. | |
* | |
* This gives you an opportunity to set up your data model, | |
* run jobs, or perform some special logic. | |
*/ | |
const _ = require('lodash'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const jwt = require('@strapi/plugin-users-permissions/server/services/jwt'); | |
const providers = require('./providers'); | |
const user = require('@strapi/plugin-users-permissions/server/services/user'); | |
const role = require('@strapi/plugin-users-permissions/server/services/role'); | |
const usersPermissions = require('@strapi/plugin-users-permissions/server/services/users-permissions'); | |
module.exports = { | |
jwt, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
switch (provider) { | |
case 'our-provider': { | |
// 'our-provider' code here | |
break; | |
} | |
... | |
} | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
const grantConfig = { | |
..., | |
'our-provider': { | |
// 'our-provider' configuration here | |
... | |
}, | |
... | |
} | |
... |
OlderNewer