wip
This commit is contained in:
@@ -247,7 +247,10 @@ class MainActivity : ComponentActivity(), SingletonImageLoader.Factory {
|
||||
|
||||
private fun handleDeepLink(intent: Intent?) {
|
||||
val data: Uri? = intent?.data
|
||||
if (data != null && data.scheme == "mycrib" && data.host == "reset-password") {
|
||||
val isResetLink = data != null &&
|
||||
data.scheme == "casera" &&
|
||||
data.host == "reset-password"
|
||||
if (isResetLink) {
|
||||
// Extract token from query parameter
|
||||
val token = data.getQueryParameter("token")
|
||||
if (token != null) {
|
||||
@@ -320,4 +323,4 @@ class MainActivity : ComponentActivity(), SingletonImageLoader.Factory {
|
||||
@Composable
|
||||
fun AppAndroidPreview() {
|
||||
App(deepLinkResetToken = null)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user