@types/angular-jwt
TypeScript icon, indicating that this package has built-in type declarations

0.0.33 • Public • Published

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

/// <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

Credits

These definitions were written by Reto Rezzonico.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/angular-jwt

Weekly Downloads

605

Version

0.0.33

License

MIT

Unpacked Size

4.68 kB

Total Files

5

Last publish

Collaborators

  • types