Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.28 KB

README.md

File metadata and controls

46 lines (40 loc) · 1.28 KB

A modern and easy login API which support rich method letmeauth.xyz

node-current Website npm

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)
})