SignInWithApple

0.1.1

Utilities to simplify Sign in with Apple for Vapor projects.
mpdifran/vapor-sign-in-with-apple

What's New

Version 0.1.1

2021-03-01T14:23:46Z
  • Make the idToken field in AppleTokenResponse optional

Vapor - Sign in with Apple

Utilities to simplify Sign in with Apple for Vapor projects.

Token Generation

Use the following method to generate refresh and access tokens from Apple's servers. Apple's documentation on this process can be found here.

let details = AppleTokenGenerationDetails(...)
request.generateAppleTokens(details: details)
    .flatMap { (tokenResponse) in
        // Store tokens
    }
}

Token Validation

Use the following method to validate an existing refresh token obtained by the above method. Apple's documentation on this process can be found here.

let details = AppleTokenValidationDetails(...)
request.validateAppleTokens(details: details)
    .flatMap { (tokenResponse) in
        // Store tokens
    }
}

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Fri Mar 15 2024 03:34:22 GMT-0900 (Hawaii-Aleutian Daylight Time)