Authentication

Вход в систему

src/config/auth.config.ts userAuthorizeWorker

  • execute request /eis.json

  • pass the obtained eisId and realmId as parameters to the authorize function of the react-native-app-auth library

Token Update

src/config/auth.config.ts updateTokensWorker

  • call the refresh function of the react-native-app-auth library

Logout

src/config/auth.config.ts userLogoutWorker

  • execute request /protocol/openid-connect/logout?redirect_uri=ecos-app:/callback, specifying client_id and refresh_token in the parameters