@trycourier/courier-react-native
Version:
Inbox, Push Notifications, and Preferences for React Native
28 lines • 1.02 kB
TypeScript
import { CourierDevice } from "..";
export declare class TokenClient {
readonly clientId: string;
constructor(clientId: string);
/**
* Stores a user token for a specific provider.
* @param props - The properties for storing the user token.
* @param props.token - The token to be stored.
* @param props.provider - The provider associated with the token.
* @param props.device - Optional device information.
* @returns A promise that resolves when the token is successfully stored.
*/
putUserToken(props: {
token: string;
provider: string;
device?: CourierDevice;
}): Promise<void>;
/**
* Deletes a user token.
* @param props - The properties for deleting the user token.
* @param props.token - The token to be deleted.
* @returns A promise that resolves when the token is successfully deleted.
*/
deleteUserToken(props: {
token: string;
}): Promise<void>;
}
//# sourceMappingURL=TokenClient.d.ts.map