Initial code for token-based credentials.