-
Notifications
You must be signed in to change notification settings - Fork 315
Closed
Labels
bugThis points to a verified bug in the codeThis points to a verified bug in the code
Description
Checklist
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
I use barebones NextJS 13, and this is what I use
const auth0ManagementClient = new ManagementClient({
clientId: env.AUTH0_MANAGEMENT_CLIENT_ID,
clientSecret: env.AUTH0_MANAGEMENT_CLIENT_SECRET,
domain: env.AUTH0_MANAGEMENT_DOMAIN,
});
"auth0": "^3.4.0",
It's suggested here: #663 (comment) to install a deprecated dependency. This is a new project, and I don't want to incorporate a dependency which is deprecated and has 50 dependencies!
❯ p add [email protected]
WARN deprecated [email protected]: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
Packages: +50
++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 729, reused 721, downloaded 0, added 0, done
dependencies:
+ rest-facade 1.13.0 (1.16.4 is available)
Any resolution?
Reproduction
In nextJS route try using this code
export async function createUser(email: string) {
const auth0ManagementClient = new ManagementClient({
clientId: env.AUTH0_MANAGEMENT_CLIENT_ID,
clientSecret: env.AUTH0_MANAGEMENT_CLIENT_SECRET,
domain: env.AUTH0_MANAGEMENT_DOMAIN
});
const password = generatePassword.generate({
length: 10,
numbers: true,
symbols: true,
uppercase: true,
strict: true,
});
return auth0ManagementClient.createUser({
email,
connection: "Username-Password-Authentication",
password,
});
}
Additional context
No response
node-auth0 version
^3.4.0
Node.js version
v20.2.0
corbinday, cupid-dev and theshubhamshivhare
Metadata
Metadata
Assignees
Labels
bugThis points to a verified bug in the codeThis points to a verified bug in the code