Model
Auth
Magento\Backend\Model\Auth
What it does
The Auth class handles backend administrator authentication in Magento 2.
Developers use this class to log admin users in and out, check if an admin is currently logged in, and retrieve the authenticated user object.
It manages the authentication flow, validates credentials, dispatches login events, and throws authentication exceptions when login fails.
Public Methods
- setAuthStorage()
- getAuthStorage()
- getUser()
- getCredentialStorage()
- login()
- logout()
- isLoggedIn()
- throwException()