Skip to content

Commit

Permalink
add build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
trunges21 committed Feb 6, 2023
1 parent b7e4d91 commit 60c1edb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
. "$(dirname "$0")/_/husky.sh"

npx lint-staged

yarn build
12 changes: 6 additions & 6 deletions dist/SDK/KindeSDK.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*
*/
import { AdditionalParameters, TokenType } from '../types/KindeSDK';
import { AdditionalParameters, TokenResponse, TokenType } from '../types/KindeSDK';
import { AuthStatus } from './Enums/AuthStatus.enum';
/**
* The KindeSDK module.
Expand Down Expand Up @@ -46,12 +46,12 @@ declare class KindeSDK {
*/
login(additionalParameters?: AdditionalParameters): Promise<void>;
/**
* It takes a URL as a parameter, parses it, and then sends a POST request to the token endpoint
* with the code, client id, client secret, grant type, redirect URI, state, and code verifier
* @param {string} url - The URL that the user is redirected to after they have logged in.
* @returns A promise that resolves to the response from the token endpoint.
* It takes a URL as a parameter, parses it, and then uses the code from the URL to get an access
* token from the token endpoint
* @param {string} url - The URL that the user is redirected to after the authorization process.
* @returns A promise that resolves to a TokenResponse object.
*/
getToken(url: string): Promise<void>;
getToken(url: string): Promise<TokenResponse>;
/**
* The function calls the login function of the AuthorizationCode class, passing in the current
* instance of the class, a boolean value of true, and the string 'registration'
Expand Down
2 changes: 1 addition & 1 deletion dist/SDK/KindeSDK.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/types/KindeSDK.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ export type UserProfile = {
family_name: string;
email: string;
};
export type TokenResponse = {
access_token: string;
refresh_token: string;
id_token: string;
scope: string;
token_type: string;
expires_in: number;
};

0 comments on commit 60c1edb

Please sign in to comment.