Skip to content

Commit

Permalink
Merge pull request #40 from kPherox/fix-redirect-uri
Browse files Browse the repository at this point in the history
Fix redirect_uri param for registerApp function
  • Loading branch information
h3poteto authored Apr 29, 2019
2 parents ac7e53d + 5292a06 commit abd2c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mastodon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class Mastodon implements MegalodonInstance {
return this.createApp(client_name, options, baseUrl)
.then(appData => {
return this.generateAuthUrl(appData.client_id, appData.client_secret, {
redirect_uri: NO_REDIRECT,
redirect_uri: appData.redirect_uri,
scope: options.scopes
}, baseUrl)
.then(url => {
Expand Down

0 comments on commit abd2c91

Please sign in to comment.