validate
Validates the deviceSecret against the ds_hash claim in the idToken.
Implementations should throw Error if validation fails, or return normally if the ds_hash claim is absent (validation not applicable).
Parameters
deviceSecret
the device secret string to validate.
idToken
the parsed Jwt containing the ds_hash claim.