ITokenParser
protocol ITokenParser
Protocol specifies method which should be implemented by id token parser.
-
Parses the id token string
Declaration
Swift
func parse(_ stringToParse: String, error: inout NSError?) -> IdToken?
Parameters
stringToParse
The string obtained using AppAuth framework.
error
An error which can occur during the parsing (it is passed as inout parameter so, its value can be set inside the function).
Return Value
Valid [IdToken] object is returned on success or nil on failure.