Structures

The following structures are available globally.

  • A pre-constructed TypeSafeGoogleToken which contains the default fields that can be requested from Google.

    Note that the Optional fields will only be initialized if the subject grants access to the data.

    Usage Example:

    router.get("/googleProfile") { (user: GoogleTokenProfile, respondWith: (GoogleTokenProfile?, RequestError?) -> Void) in
       respondWith(user, nil)
    }
    
    See more

    Declaration

    Swift

    public struct GoogleTokenProfile: TypeSafeGoogleToken