diff options
| author | Henry Jameson <me@hjkos.com> | 2019-06-13 00:44:25 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-06-13 00:44:25 +0300 |
| commit | 6cd454687390947ccc7be02d03d5da008ab2607b (patch) | |
| tree | 4b3cf2c6118196f625d32699d8ab04e0188778a4 /src/modules/oauth.js | |
| parent | af75c6d1ea392477c647708dcd0e712c514a1b60 (diff) | |
comments
Diffstat (limited to 'src/modules/oauth.js')
| -rw-r--r-- | src/modules/oauth.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/oauth.js b/src/modules/oauth.js index 4b233b21..332b8db2 100644 --- a/src/modules/oauth.js +++ b/src/modules/oauth.js @@ -2,7 +2,14 @@ const oauth = { state: { clientId: false, clientSecret: false, + /* App token is authentication for app without any user, used mostly for + * MastoAPI's registration of new users, stored so that we can fall back to + * it on logout + */ appToken: false, + /* User token is authentication for app with user, this is for every calls + * that need authorized user to be successful (i.e. posting, liking etc) + */ userToken: false }, mutations: { |
