Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove iframe-resizer package #34

Merged
merged 3 commits into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
wip
  • Loading branch information
hwhmeikle committed May 17, 2023
commit 49b8f275741f3cc0961799443ed3f325c7ed490c
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.DS_Store
node_modules
*.cache
dist
.parcel-cache
package-lock.json
.nyc_output
Expand Down
1 change: 1 addition & 0 deletions dist/api/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./passkey-api-client";
16 changes: 16 additions & 0 deletions dist/api/passkey-api-client.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { KyInstance } from "ky/distribution/types/ky";
import { AddAuthenticatorRequest, AddAuthenticatorResponse, AuthenticationOptsRequest, AuthenticationOptsResponse, RegistrationOptsRequest, RegistrationOptsResponse, VerifyRequest, VerifyResponse } from "./types";
declare type PasskeyApiClientOptions = {
baseUrl: string;
tenantId: string;
};
export declare class PasskeyApiClient {
tenantId: string;
api: KyInstance;
constructor({ baseUrl, tenantId }: PasskeyApiClientOptions);
registrationOptions({ token, userName }: RegistrationOptsRequest): Promise<RegistrationOptsResponse>;
authenticationOptions({ token }: AuthenticationOptsRequest): Promise<AuthenticationOptsResponse>;
addAuthenticator({ token, ...rest }: AddAuthenticatorRequest): Promise<AddAuthenticatorResponse>;
verify({ token, ...rest }: VerifyRequest): Promise<VerifyResponse>;
}
export {};
35 changes: 35 additions & 0 deletions dist/api/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { AuthenticationResponseJSON, PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON } from "@simplewebauthn/typescript-types";
export declare type RegistrationOptsRequest = {
userName?: string;
token: string;
};
export declare type RegistrationOptsResponse = {
challengeId: string;
options: PublicKeyCredentialCreationOptionsJSON;
};
export declare type AuthenticationOptsRequest = {
token?: string;
};
export declare type AuthenticationOptsResponse = {
challengeId: string;
options: PublicKeyCredentialCreationOptionsJSON;
};
export declare type AddAuthenticatorRequest = {
token: string;
challengeId: string;
registrationCredential: RegistrationResponseJSON;
};
export declare type AddAuthenticatorResponse = {
isVerified: boolean;
accessToken?: string;
userAuthenticatorId?: string;
};
export declare type VerifyRequest = {
token?: string;
challengeId: string;
authenticationCredential: AuthenticationResponseJSON;
};
export declare type VerifyResponse = {
isVerified: boolean;
accessToken?: string;
};
16 changes: 16 additions & 0 deletions dist/authsignal.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { AuthsignalOptions, LaunchOptions, TokenPayload } from "./types";
import { Passkey } from "./passkey";
export declare class Authsignal {
anonymousId: string;
cookieDomain: string;
anonymousIdCookieName: string;
passkey: Passkey;
private _token;
constructor({ cookieDomain, cookieName, baseUrl, tenantId, }: AuthsignalOptions);
launch(url: string, options?: {
mode?: "redirect";
} & LaunchOptions): undefined;
launch(url: string, options?: {
mode: "popup";
} & LaunchOptions): Promise<TokenPayload>;
}
11 changes: 11 additions & 0 deletions dist/helpers.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare type CookieOptions = {
name: string;
value: string;
expire: number;
domain: string;
secure: boolean;
};
export declare const setCookie: ({ name, value, expire, domain, secure }: CookieOptions) => void;
export declare const getCookieDomain: () => string;
export declare const getCookie: (name: string) => string | null;
export {};
2 changes: 2 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { Authsignal } from "./authsignal";
export * from "./types";
Loading