key should be called token in client

Accidentally was calling the field key instead of token.