Kotlin Sign in with Apple

Sign in with Apple token verification written in Kotlin

License

License

Categories

Categories

Kotlin Languages
GroupId

GroupId

com.auritylab
ArtifactId

ArtifactId

kotlin-sign-in-with-apple
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

Kotlin Sign in with Apple
Sign in with Apple token verification written in Kotlin
Project URL

Project URL

https://github.com/AurityLab/kotlin-sign-in-with-apple
Project Organization

Project Organization

AurityLab UG (haftungsbeschraenkt)
Source Code Management

Source Code Management

https://github.com/AurityLab/kotlin-sign-in-with-apple

Download kotlin-sign-in-with-apple

Dependencies

runtime (3)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.4.32
org.jetbrains.kotlinx : kotlinx-serialization-json-jvm jar 1.1.0
com.auth0 : java-jwt jar 3.10.3

Project Modules

There are no modules declared in this project.

Kotlin Sign in with Apple

GitHub Actions ktlint Maven Central

This library is capable of verifying the identity token from Sign in with Apple.

Install

Gradle

dependencies {
    implementation("com.auritylab:kotlin-sign-in-with-apple:1.0.1") // See above for the latest version!
}

Maven

<dependency>
    <groupId>com.auritylab</groupId>
    <artifactId>kotlin-sign-in-with-apple</artifactId>
    <version>1.0.1</version> <!-- See above for the latest versions! -->
</dependency>

Usage

// Validate the identity token.
val result = AppleSignIn("<your client_id>").validate("<the identity token>")

// If the identity token is expired, etc. the validate() method will return null.
// If there is a network issue or the given identity token is no valid JWT token at all, an exception will be thrown.

println(result.userIdentifier) // The unique identifier of the user.
println(result.email) // The email address of the user.
println(result.emailVerified) // If the email address is verified.
println(result.issuedAt) // The time the token was issued.
com.auritylab

AurityLab

Versions

Version
1.0.2
1.0.1
1.0.0