Documentations › mmo.oauth › js › oauth User MMO.oauth · 1 symbol · generated 27 Oct 2026
class MMO.oauth.User Namespace MMO.oauthMethods8 constructor(config) getScopes(uid = null) What the scopes' editor needs: the scopes the application lists, the actions checked under them, the roles...
getScopesCatalog(uid = null) (`AccessController::routeScopesCatalog`) uid = null ?stringthe role or the client edited, null for a new one returns Promise<{data: Object>}
isAllowed(uid, def = false) getConfig() Set user config
setConfig(path, value, quiet = false) path value quiet = false boolean- true for a value the user did not ask to save (where a tour was left): its failure, a session expired included, is the caller's to handle and shows no error window (MMO.fetchJSON shows one) returns Promise
MMO.user.setConfig('guides/users', {status: 'done'}, true).catch(() => null)
deleteConfig(path) pushConfig(path, value)