C0D3D3V opened this issue 2 years ago · 1 comments
The moodle app checks if the moodle mobile API is enabled and which type of authentication is required. We can copy this behavior so that we can inform the user about the options.
https://github.com/moodlehq/moodleapp/blob/becd020329f7b63051a3b135f9ff5dbc92423f2c/src/core/services/sites.ts#L406-L460
https://github.com/moodlehq/moodleapp/blob/becd020329f7b63051a3b135f9ff5dbc92423f2c/src/core/features/login/services/login-helper.ts#L924-L1039