From 9023aecad00b039a185a41574a49bd723cc31ca6 Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Tue, 13 Aug 2024 15:18:05 +0530 Subject: [PATCH] docs: Fix some issues of the Asgardeo-Android mobile SDK --- docs/website/android/introduction.md | 2 +- docs/website/android/start.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/website/android/introduction.md b/docs/website/android/introduction.md index ae05fcb..78b362b 100644 --- a/docs/website/android/introduction.md +++ b/docs/website/android/introduction.md @@ -53,7 +53,7 @@ This SDK assists you in creating custom login flows directly within the applicat This should be consistent with the CallBack URL of the Service Provider that you configured in the Asgardeo. - For example, if you have configured the CallBack URL as *wso2sample://oauth2*, then the `appAuthRedirectScheme` should be *wso2sample*. + For example, if you have configured the CallBack URL as *wso2.apiauth.sample.android://oauth2*, then the `appAuthRedirectScheme` should be *wso2.apiauth.sample.android*. ```groovy android.defaultConfig.manifestPlaceholders.putAll( diff --git a/docs/website/android/start.md b/docs/website/android/start.md index 4d5da8d..dc47bbd 100644 --- a/docs/website/android/start.md +++ b/docs/website/android/start.md @@ -39,7 +39,7 @@ val authenticationProvider: AuthenticationProvider = asgardeoAuth.getAuthenticationProvider() ``` -AuthenticationProvider handles the authentication process using `SharedFlow`. This will help you to handle each state of the authentication process easily. There are four states in the authentication process (AuthenticationState): +AuthenticationProvider handles the authentication process using [SharedFlow](https://developer.android.com/kotlin/flow/stateflow-and-sharedflow#sharedflow). This will help you to handle each state of the authentication process easily. There are four states in the authentication process (AuthenticationState): - **AuthenticationState.Initial**: Initial state of the authentication process. - **AuthenticationState.Loading**: SDK is calling an API to handle the authentication and waiting for the result. @@ -90,7 +90,7 @@ private fun HandleAuthenticationState(authenticationStateFlow: SharedFlow { - /** + /** * Gets called when /authorize and /authn responds with an “INCOMPLETE” state. * This means authentication flow is still not completed and a particular step is getting * challenged for authentication. @@ -98,13 +98,13 @@ private fun HandleAuthenticationState(authenticationStateFlow: SharedFlow { - /** + /** * Gets called when /authorize and /authn responds with an “FAILED_INCOMPLETE” state * which responds at an error of a particular authentication step */ } is AuthenticationState.Authenticated -> { - /** + /** * Gets called when /authn responds with an “SUCCESS” state. This means * authentication flow is completed */