Skip to content

petertuananh/letmeauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published