【文件属性】:
文件名称:ember-data-github:GitHub API的Ember数据库
文件大小:249KB
文件格式:ZIP
更新时间:2021-02-04 13:41:28
github ember github-api emberjs ember-addon
灰烬数据Github
Ember数据抽象。
安装
ember install ember-data-github
用法
您需要选择希望使用OAuth认证GitHub请求的方式。 ember-data-github提供了一种针对其自身的简单直接的机制。 另外,您可以使用更通用的身份验证框架,例如ember-simple-auth 。
直接认证
如果您已经具有使用OAuth端点的令牌(例如,个人访问令牌) ,则必须使用当前登录的用户的GitHub访问令牌在github-session服务上设置名为githubAccessToken的属性。
使用ember-simple-auth
如果您正在使用