parseTokenToSubjectInfo

fun parseTokenToSubjectInfo(token: TokenResponse, parseTokenParams: ParseTokenParams): ParsedSubjectInfo

The function is used to parse token to SubjectInfo

Return

ParsedSubjectInfo with nricNumber and uuid

Parameters

token

parameter for token response from IDP

parseTokenParams

parameter for decrypting, verify signature, verify payload