
Library facilitates Google user authentication on desktop devices, enabling retrieval of OAuth IdToken with a straightforward implementation. Supports easy integration and community contributions.
Google Auth Desktop is a Kotlin Multiplatform library for authenticating Google users on desktop devices. This library provides a simple way to obtain a Google OAuth IdToken for a user.
To use Google Auth Desktop, add the following line to your build.gradle.kts file:
implementation("io.github.niqrs:google-auth-desktop:1.1")Here is an example of how to use Google Auth Desktop:
private fun main() {
runBlocking {
val client = GoogleAuthClient(GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET)
println(client.authorizationUrl)
val res = client.waitForOAuthIdToken()
println(res)
}
}This code will authenticate the user with their Google account and retrieve an OAuth IdToken.
Contributions to Google Auth Desktop are welcome! Please feel free to submit issues or pull requests.
Google Auth Desktop is licensed under the MIT License.
Google Auth Desktop is a Kotlin Multiplatform library for authenticating Google users on desktop devices. This library provides a simple way to obtain a Google OAuth IdToken for a user.
To use Google Auth Desktop, add the following line to your build.gradle.kts file:
implementation("io.github.niqrs:google-auth-desktop:1.1")Here is an example of how to use Google Auth Desktop:
private fun main() {
runBlocking {
val client = GoogleAuthClient(GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET)
println(client.authorizationUrl)
val res = client.waitForOAuthIdToken()
println(res)
}
}This code will authenticate the user with their Google account and retrieve an OAuth IdToken.
Contributions to Google Auth Desktop are welcome! Please feel free to submit issues or pull requests.
Google Auth Desktop is licensed under the MIT License.