Merge pull request #308 from h3poteto/fix/appname

Fix application name, and add comment for website
This commit is contained in:
AkiraFukushima 2018-05-16 00:06:17 +09:00 committed by GitHub
commit ac3e2241d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import Mastodon from 'mastodon-api'
const appName = 'whalebird'
const appName = 'Whalebird'
const scope = 'read write follow'
export default class Authentication {
@ -22,6 +22,7 @@ export default class Authentication {
async getAuthorizationUrl (domain = 'mastodon.social') {
this.setOtherInstance(domain)
// Waiting for merge this pull request: https://github.com/vanita5/mastodon-api/pull/8
const res = await Mastodon.createOAuthApp(this.baseURL + '/api/v1/apps', appName, scope)
this.clientId = res.client_id
this.clientSecret = res.client_secret