Documentations › mmo.oauth › js › oauth User MMO.oauth · 1 symbole · générée le 27 Oct 2026
class MMO.oauth.User Espace de noms MMO.oauthMéthodes8 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 retourne 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) retourne Promise
MMO.user.setConfig('guides/users', {status: 'done'}, true).catch(() => null)
deleteConfig(path) pushConfig(path, value)