Adds a single token to a user and overwrites a matching existing token.
The user’s ID. This can be any uniquely identifiable string.
The full token string.
Full body of the token. Must match token in URL.
ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.
Properties sent to the provider along with the token
Information about the device the token is associated with.
Information about the device the token is associated with.