Authorization (FIrebase)

Air UI uses firebase package for default app authorization. You can easily replace authorization service to needed for changing aithorization method (eg. Auth0).

Check "src/services/user.js" file for next functions:

src/services/user.js
export async function login(email, password) { ... } // auth procedure
export async function currentAccount() { ... } // get current authorized user data
export async function logout() { ... } // logout user

And "src/redux/user/sagas.js" file for understanding how the app do authorization process.

src/models/user.js
export function* LOGIN() {
...
}
export function* LOAD_CURRENT_ACCOUNT() {
...
}
export function* LOGOUT() {
...
}
export default function* rootSaga() {
yield all([
takeEvery(actions.LOGIN, LOGIN),
takeEvery(actions.LOAD_CURRENT_ACCOUNT, LOAD_CURRENT_ACCOUNT),
takeEvery(actions.LOGOUT, LOGOUT),
LOAD_CURRENT_ACCOUNT(), // run once on app load to check user auth
])
}