0.0.33 • Published 6 months ago

@types/angular-jwt v0.0.33

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

Installation

npm install --save @types/angular-jwt

Summary

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

Details

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

index.d.ts

// Type definitions for angular-jwt 0.0.8
// Project: https://github.com/auth0/angular-jwt
// Definitions by: Reto Rezzonico <https://github.com/rerezz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <reference types="angular" />

import * as angular from 'angular';

declare module 'angular' {
    export namespace jwt {

        interface JwtToken {
            iss?: string | undefined;
            sub?: string | undefined;
            aud?: string | undefined;
            exp?: number | undefined;
            nbf?: number | undefined;
            iat?: number | undefined;
            jti?: string | undefined;
            unique_name?: string | undefined;
        }

        interface IJwtHelper {
            decodeToken(token: string): JwtToken;
            getTokenExpirationDate(token: any): Date;
            isTokenExpired(token: any, offsetSeconds?: number): boolean;
        }

        interface IJwtInterceptor {
            tokenGetter(...params: any[]): string;
        }

        interface IAuthManagerServiceProvider {
            authenticate(): void;
            unauthenticate(): void;
            checkAuthOnRefresh(): void;
            redirectWhenUnauthenticated(): void;
        }
    }
}

Additional Details

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

Credits

These definitions were written by Reto Rezzonico.

0.0.31

7 months ago

0.0.32

7 months ago

0.0.33

6 months ago

0.0.30

3 years ago

0.0.29

7 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.20-alpha

8 years ago

0.0.19-alpha

8 years ago

0.0.14-alpha

8 years ago

0.0.13-alpha

8 years ago