letmeauth
v1.1.4
Published
> A modern and easy login API which support rich method [letmeauth.xyz](https://letmeauth.xyz) <div align="center"> <p> <a href="https://www.npmjs.com/package/letmeauth" target="_blank"><img src="https://nodei.co/npm/letmeauth.png?downloads=true
Downloads
3
Readme
A modern and easy login API which support rich method letmeauth.xyz
Requirement
- Node.js 16.9.0 or higher
Installation
npm install letmeauth
Example
const letmeauth = require('letmeauth');
// check token and return user json
letmeauth.checkToken({
token: '',
app_id: '',
client_secret: ''
})
.then((res)=>{
console.log(res)
})
// get Oauth2 URL
letmeauth.getOauth2URL({
app_id: '',
callback: '',
scopes: ["email", "identify", "socialnetwork"],
prompt: 'none',
response_type: 'code'
}).then((res)=>{
console.log(res)
})