Skip to content

yuque/auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yuque-auth

语雀第三方应用的客户端鉴权客户端。

install

tnpm install yuque-auth

Usage

const { auth } = require('yuque-auth');

auth({
  // clientId 和 clientSevret在 oauth 应用中可查到
  clientId,
  clientSecret,
  scope: 'repo,doc',
}).then(res => {
  console.log('get auth', res);
  //{ access_token: 'Y1iwvwUPI4M67VjWRGHAzgq7gzB4a21EV3jOhyFf', token_type: 'bearer', scope: 'repo,doc' }
}).catch(err => {
  console.log('error happened', err.stack);
});

About

auth client for yuque oauth app

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •