IDPDirectoryKKApps
public struct IDPDirectoryKKApps
All relevant constraints needed for a successful challenge exchange
-
JWT containing the directory KK apps data
Declaration
Swift
public let jwt: JWT
-
Initialize IDPDirectoryKKApps with a JWT string
Throws
If JWT parsing failsDeclaration
Swift
public init(jwt: String) throws
Parameters
jwt
JWT string to parse
-
Initialize response from preformatted JWT
Declaration
Swift
public init(jwt: JWT)
Parameters
jwt
original challenge
-
Extract claims from the JWT
Throws
If payload decoding failsDeclaration
Swift
public func claims() throws -> KKAppDirectory
Return Value
KKAppDirectory claims from the JWT payload