拿掉 build files

This commit is contained in:
2022-07-18 16:33:23 +08:00
parent 41e2287bcb
commit 3707f158a3
31953 changed files with 0 additions and 4411796 deletions
-1
View File
@@ -1 +0,0 @@
export default function checkExpired(): boolean;
-7
View File
@@ -1,7 +0,0 @@
/**
* createCodeChallenge for PKCE Login
* @export
* @param {string} code_verifier
* @return {string}
*/
export default function createCodeChallenge(code_verifier: string): string;
-6
View File
@@ -1,6 +0,0 @@
/**
* createCodeVerifier for PKCE login
* @export
* @return {string}
*/
export default function createCodeVerifier(): string;
-1
View File
@@ -1 +0,0 @@
export default function cryptoVerify(pub: any, encodedBuf: any, signatureBuf: any): Promise<boolean>;
-6
View File
@@ -1,6 +0,0 @@
/**
* Checks whether the user is logged in.
* @export
* @returns {boolean}
*/
export default function isLoggedIn(): boolean;
@@ -1,6 +0,0 @@
/**
* Detect whether user is logged in by accessToken in sessionStorage
* @export
* @returns {boolean}
*/
export default function isRedirectedFromLoginServer(code: string): boolean;
-7
View File
@@ -1,7 +0,0 @@
/**
* Performs the LINE Login process (web login) for the Web app.
* @export
*/
export default function login(loginConfig?: {
redirectUri?: string;
}): void;
-5
View File
@@ -1,5 +0,0 @@
/**
* Logs out.
* @export
*/
export default function logout(): void;
-21
View File
@@ -1,21 +0,0 @@
/**
* Give developer ability to add extra params to permanent link.
* Can be used for tracking parameters for example
* @param {string} paramsToAdd - Extra params to add to permanent link
*/
declare const setExtraQueryParam: (paramsToAdd: string) => void;
/**
* Create Permanent Link function.
* @returns {string} - Generated permanent link
*/
declare const createUrl: () => string;
/**
* Decode liff.state
* If valid, return decoded state (with any double slashes removed)
* Else LiffError is thrown
* @param {string} state - liff.state's value
* @throws {LiffError}
* @returns {string} - Decoded liff.state with any double slashes removed
*/
declare const decodeState: (state: string) => string;
export { decodeState, createUrl, setExtraQueryParam };
-16
View File
@@ -1,16 +0,0 @@
interface AccessToken {
access_token: string;
token_type: string;
refresh_token: string;
expires_in: number;
scope: string;
id_token?: string;
}
/**
* Request OAuth server to issue access_token
* API Reference https://developers.line.biz/en/reference/social-api/
* @export
* @returns {Promise<any>}
*/
export default function requestAccessToken(): Promise<AccessToken>;
export {};
-9
View File
@@ -1,9 +0,0 @@
interface CertKey {
kid: string;
alg?: string;
}
interface Certs {
keys: CertKey[];
}
declare function requestCerts(): Promise<Certs>;
export default requestCerts;
-14
View File
@@ -1,14 +0,0 @@
export declare const INVALID_ALG = "Invalid \"alg\" value in ID_TOKEN";
export declare const FAILED_CRYPTO = "Failed to use Crypto API to verify ID_TOKEN";
export declare const INVALID_KID = "Invalid \"kid\" value in ID_TOKEN";
export declare const INVALID_ISS = "Invalid \"iss\" value in ID_TOKEN";
export declare const INVALID_AUD = "Invalid \"aud\" value in ID_TOKEN";
export declare const INVALID_EXP = "Invalid \"exp\" value in ID_TOKEN";
export declare const INVALID_SIG = "Invalid signature in ID_TOKEN";
/**
* verify ID Token in JWT format
* @export
* @param {string} idToken - string
* @returns {Promise<Object>}
*/
export default function verifyIDToken(idToken: string, liffClientId: string): Promise<unknown>;