mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 20:10:05 +08:00
adds support for getToken(string,string) and deleteToken(string,string) to iid
This commit is contained in:
@@ -27,6 +27,14 @@ export default class InstanceId extends ModuleBase {
|
||||
get(): Promise<string> {
|
||||
return getNativeModule(this).get();
|
||||
}
|
||||
|
||||
getToken(authorizedEntity: string, scope: string): Promise<string> {
|
||||
return getNativeModule(this).getToken(authorizedEntity, scope);
|
||||
}
|
||||
|
||||
deleteToken(authorizedEntity: string, scope: string): Promise<void> {
|
||||
return getNativeModule(this).deleteToken(authorizedEntity, scope);
|
||||
}
|
||||
}
|
||||
|
||||
export const statics = {};
|
||||
|
||||
Reference in New Issue
Block a user