adds support for getToken(string,string) and deleteToken(string,string) to iid

This commit is contained in:
Case Taintor
2018-05-26 21:05:19 +02:00
parent 88e232199b
commit 3652a05848
7 changed files with 111 additions and 1 deletions

View File

@@ -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 = {};