-
Notifications
You must be signed in to change notification settings - Fork 462
Closed
Description
I have created Typescript definitions, and wanted to check if you wanted to include this in the package or if I should simply add them to DefinitelyTyped.
declare module "react-native-app-auth" {
interface IAppAuthProperties {
scopes: string[];
issuer: string;
clientId: string;
redirectUrl: string;
aditionalParameters?: object;
}
function authorize(
properties: IAppAuthProperties
): Promise<{
accessToken: string;
accessTokenExpirationDate: string;
additionalParameters: object;
idToken: string;
refreshToken: string;
tokenType: string;
}>;
function refresh(
properties: IAppAuthProperties,
{ refreshToken: string }
): Promise<AuthorizeResult>;
function revoke(
properties: IAppAuthProperties,
{ tokenToRevoke: string, sendClientId: boolean }
): Promise<void>;
}Metadata
Metadata
Assignees
Labels
No labels