Back to articles
My npm package called authentifier

My npm package called authentifier

via Dev.to JavaScriptevan baroi

I just made an auth library that simplifies authentication. A code example: import auth from "./auth.config" await auth.signUp(username, email, password) You just download with npm install Authentifier Then run npx authentifier. It asks several questions that includes what provider you want. For version 1. I am only including Appwrite, Supabase and Firebase. Please tell me what providers should I add in future updates in the comments. The question is the necessary items needed for the providers like api keys, tokens etc etc. after the questions are finished, an auth.config.js file will be generated. An example of auth.config.js: import { Auth} from 'authentifier'; const auth = new Auth({ service: 'firebase', config: { apikey: 'AlzaSy..., authDomain: 'myapp.firebaseapp.com', projectid: 'my-app', appld: '1:123:web:abc' } }); Now the code that implements auth: import auth from "./auth.config" await auth.signUp(username, email, password) The npm link: https://www.npmjs.com/package/authenti

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
6 views

Related Articles