@trycourier/courier-js
Version:
A browser-safe API wrapper
25 lines (24 loc) • 804 B
TypeScript
import { CourierDevice } from '../types/token';
import { Client } from './client';
export declare class TokenClient extends Client {
/**
* Store a push notification token for a user
* @param token - The push notification token
* @param provider - The provider of the token
* @param device - The device information
* @see https://www.courier.com/docs/reference/token-management/put-token
*/
putUserToken(props: {
token: string;
provider: string;
device?: CourierDevice;
}): Promise<void>;
/**
* Delete a push notification token for a user
* @param token - The push notification token
* @returns Promise resolving when token is deleted
*/
deleteUserToken(props: {
token: string;
}): Promise<void>;
}