4.1.8 • Published 6 months ago

@types/angular-oauth2 v4.1.8

Weekly downloads
14
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/angular-oauth2

Summary

This package contains type definitions for angular-oauth2 (https://github.com/oauthjs/angular-oauth2).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-oauth2.

index.d.ts

// Type definitions for angular-oauth2 4.1
// Project: https://github.com/oauthjs/angular-oauth2, https://github.com/seegno/angular-oauth2
// Definitions by: Antério Vieira <https://github.com/anteriovieira>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import * as angular from 'angular';

declare module 'angular' {
    namespace oauth2 {
        interface OAuthConfig {
            baseUrl: string;
            clientId: string;
            clientSecret?: string | undefined;
            grantPath?: string | undefined;
            revokePath?: string | undefined;
        }

        interface OAuthProvider {
            configure(params: OAuthConfig): OAuthConfig;
        }

        interface Data {
            username: string;
            password: string;
        }

        interface OAuth {
            isAuthenticated(): boolean;
            getAccessToken(data: Data, options?: any): IPromise<string>;
            getRefreshToken(data?: Data, options?: any): IPromise<string>;
            revokeToken(data?: Data, options?: any): IPromise<string>;
        }

        interface OAuthTokenConfig {
            name: string;
            options: any;
        }

        interface OAuthTokenOptions {
            secure: boolean;
        }

        interface OAuthTokenProvider {
            configure(params: OAuthTokenConfig): OAuthTokenConfig;
        }
    }
}

Additional Details

  • Last updated: Wed, 07 Jul 2021 21:44:21 GMT
  • Dependencies: @types/angular
  • Global values: none

Credits

These definitions were written by Antério Vieira.

4.1.6

8 months ago

4.1.8

6 months ago

4.1.7

7 months ago

4.1.5

3 years ago

4.1.4

5 years ago

4.1.3

7 years ago

4.1.2

7 years ago

4.1.1

7 years ago

4.1.0

7 years ago