# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-jwt/index.d.ts)
````ts
/// <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: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: [@types/angular](https://npmjs.com/package/@types/angular)

# Credits
These definitions were written by [Reto Rezzonico](https://github.com/rerezz).
