From 2ec448f075cba7ff8e8e73aec18bbab0a2843ef4 Mon Sep 17 00:00:00 2001 From: ExalayanMari <208263629+ExalayanMari@users.noreply.github.com> Date: Fri, 23 May 2025 23:21:03 -1000 Subject: [PATCH] Create h0 .dTag --- h0 .dTag | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 h0 .dTag diff --git a/h0 .dTag b/h0 .dTag new file mode 100644 index 0000000..026c072 --- /dev/null +++ b/h0 .dTag @@ -0,0 +1,21 @@ +private fun loginWithBrowser() { + // Setup the WebAuthProvider, using the custom scheme and scope. + + WebAuthProvider.login(account) + .withScheme("demo") + .withScope("openid profile email") + // Launch the authentication passing the callback where the results will be received + .start(this, object : Callback { + // Called when there is an authentication failure + override fun onFailure(exception: AuthenticationException) { + // Something went wrong! + } + + // Called when authentication completed successfully + override fun onSuccess(credentials: Credentials) { + // Get the access token from the credentials object. + // This can be used to call APIs + val accessToken = credentials.accessToken + } + }) +}