module PlaceOS::Api::Utils::CurrentUser
Defined in:
placeos-rest-api/utilities/current-user.crInstance Method Summary
- #authorize! : Model::UserJWT
-
#check_admin
Read admin status from supplied request JWT
- #check_oauth_scope
-
#check_support
Read support status from supplied request JWT
-
#current_authority : Model::Authority | Nil
Obtains the authority for the request's host
-
#current_user : Model::User
Obtains user referenced by user_token id
- #is_admin?
- #is_support?
-
#user_token : Model::UserJWT
Getter for user_token