Implement cli and web token revoking
This commit is contained in:
@@ -83,6 +83,14 @@ const APP_TYPES = {
|
||||
|
||||
const PROXY_APP_ID = 'io.cloudron.builtin.appproxy';
|
||||
|
||||
// sync up with tokens.js
|
||||
const TOKEN_TYPES = {
|
||||
ID_WEBADMIN: 'cid-webadmin', // dashboard
|
||||
ID_DEVELOPMENT: 'cid-development', // dashboard development
|
||||
ID_CLI: 'cid-cli', // cloudron cli
|
||||
ID_SDK: 'cid-sdk', // created by user via dashboard
|
||||
};
|
||||
|
||||
// named exports
|
||||
export {
|
||||
APP_TYPES,
|
||||
@@ -93,6 +101,7 @@ export {
|
||||
ROLES,
|
||||
TASK_TYPES,
|
||||
PROXY_APP_ID,
|
||||
TOKEN_TYPES,
|
||||
};
|
||||
|
||||
// default export
|
||||
@@ -105,4 +114,5 @@ export default {
|
||||
ROLES,
|
||||
TASK_TYPES,
|
||||
PROXY_APP_ID,
|
||||
TOKEN_TYPES,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user