UNPKG

@delon/auth

Version:

Simple user authentication, support Json Web Token & Simple Token.

15 lines (14 loc) 347 B
import { HttpContextToken } from '@angular/common/http'; /** * Whether to allow anonymous login * * 是否允许匿名登录 * * @example * this.http.post(`login`, { * name: 'cipchk', pwd: '123456' * }, { * context: new HttpContext().set(ALLOW_ANONYMOUS, true) * }) */ export declare const ALLOW_ANONYMOUS: HttpContextToken<boolean>;