A modern and easy login API which support rich method letmeauth.xyz
- Node.js 16.9.0 or higher
npm install letmeauth
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)
})