1.0.1 • Published 3 years ago
@biohumanetics/auth0-utils v1.0.1
Auth0 Utils
Some helper functions for use with Auth0
Install
npm install @biohumanetics/auth0-utils
CopyUsers Usage
Warning: All users will be deleted from the destAccount
.
Copies users between Auth0 accounts, eg., from Production
to Development
.
A copy of the users from the sourceAcct will be saved locally.
const auth0Utils = require('@biohumanetics/auth0-utils');
auth0Utils.copyUsers({
sourceAcct: {
domain: 'example-prod.auth0.com',
clientId: 'abc123',
clientSecret: 'abc123',
},
destAcct: {
userPassword: 'password to use for every user',
domain: 'example-dev.auth0.com',
clientId: 'abc123',
clientSecret: 'abc123',
},
});