asTokenOrNull

Casts this Credentials as a Token and retrieves its kotlin.String value. Returns null if the Credentials is not a Token.