Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@authgear/web

Package Overview
Dependencies
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@authgear/web - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

200

index.d.ts

@@ -1,2 +0,1 @@

/**

@@ -19,52 +18,2 @@ * AuthgearError is the root class of error produced by the SDK.

/**
* Auth UI authorization options
*
* @public
*/
export declare interface AuthorizeOptions {
/**
* Redirect uri. Redirection URI to which the response will be sent after authorization.
*/
redirectURI: string;
/**
* OAuth 2.0 state value.
*/
state?: string;
/**
* OIDC prompt parameter.
*
* Prompt parameter will be used for Authgear authorization, it will also be forwarded to the underlying SSO providers.
*
* For Authgear, currently, only login is supported. Other unsupported values will be ignored.
*
* For the underlying SSO providers, some providers only support a single value rather than a list.
* The first supported value will be used for that case.
* e.g. Azure Active Directory
*
*/
prompt?: PromptOption[] | PromptOption;
/**
* OIDC login hint parameter
*/
loginHint?: string;
/**
* UI locale tags
*/
uiLocales?: string[];
/**
* OAuth response type
*/
responseType?: "code" | "none";
/**
* WeChat Redirect URI is needed when integrating WeChat login in react-native
* The wechatRedirectURI will be called when user click the login with WeChat button
*/
wechatRedirectURI?: string;
/**
* Initial page to open. Valid values are 'login' and 'signup'.
*/
page?: string;
}
/**
* Result of authorization.

@@ -146,27 +95,2 @@ *

/**
* Auth UI anonymous user promotion options
*
* @public
*/
export declare interface PromoteOptions {
/**
* Redirect uri. Redirection URI to which the response will be sent after authorization.
*/
redirectURI: string;
/**
* OAuth 2.0 state value.
*/
state?: string;
/**
* UI locale tags
*/
uiLocales?: string[];
/**
* WeChat Redirect URI is needed when integrating WeChat login in react-native
* The wechatRedirectURI will be called when user click the login with WeChat button
*/
wechatRedirectURI?: string;
}
/**
* Prompt parameter options.

@@ -179,30 +103,2 @@ *

/**
* Options for reauthentication
* @public
*/
export declare interface ReauthenticateOptions {
/**
* Redirect uri. Redirection URI to which the response will be sent after authorization.
*/
redirectURI: string;
/**
* OAuth 2.0 state value.
*/
state?: string;
/**
* UI locale tags
*/
uiLocales?: string[];
/**
* WeChat Redirect URI is needed when integrating WeChat login in react-native
* The wechatRedirectURI will be called when user click the login with WeChat button
*/
wechatRedirectURI?: string;
/**
* OIDC max_age
*/
maxAge?: number;
}
/**
* Result of reauthentication

@@ -303,2 +199,23 @@ *

*/
export declare interface TokenStorage {
setRefreshToken(namespace: string, refreshToken: string): Promise<void>;
getRefreshToken(namespace: string): Promise<string | null>;
delRefreshToken(namespace: string): Promise<void>;
}
/**
* @public
*/
export declare class TransientTokenStorage implements TokenStorage {
private keyMaker;
private storageDriver;
constructor();
setRefreshToken(namespace: string, refreshToken: string): Promise<void>;
getRefreshToken(namespace: string): Promise<string | null>;
delRefreshToken(namespace: string): Promise<void>;
}
/**
* @public
*/
export declare interface UserInfo {

@@ -318,4 +235,49 @@ sub: string;

/**
* Auth UI authorization options
*
* @public
*/
export declare interface AuthorizeOptions {
/**
* Redirect uri. Redirection URI to which the response will be sent after authorization.
*/
redirectURI: string;
/**
* OAuth 2.0 state value.
*/
state?: string;
/**
* OIDC prompt parameter.
*
* Prompt parameter will be used for Authgear authorization, it will also be forwarded to the underlying SSO providers.
*
* For Authgear, currently, only login is supported. Other unsupported values will be ignored.
*
* For the underlying SSO providers, some providers only support a single value rather than a list.
* The first supported value will be used for that case.
* e.g. Azure Active Directory
*
*/
prompt?: PromptOption[] | PromptOption;
/**
* OIDC login hint parameter
*/
loginHint?: string;
/**
* UI locale tags
*/
uiLocales?: string[];
/**
* OAuth response type
*/
responseType?: "code" | "none";
/**
* Initial page to open. Valid values are 'login' and 'signup'.
*/
page?: string;
}
/**
* @public
*/
export declare interface ConfigureOptions {

@@ -344,8 +306,2 @@ /**

sessionType?: "cookie" | "refresh_token";
/**
* transientSession indicate if the session in SDK is short-lived session.
* If transientSession is true means the session is short-lived session.
* In web, the session will be stored in sessionStorage, that means it only persists within the same browser tab.
*/
transientSession?: boolean;
}

@@ -365,2 +321,25 @@

/**
* Options for reauthentication
* @public
*/
export declare interface ReauthenticateOptions {
/**
* Redirect uri. Redirection URI to which the response will be sent after authorization.
*/
redirectURI: string;
/**
* OAuth 2.0 state value.
*/
state?: string;
/**
* UI locale tags
*/
uiLocales?: string[];
/**
* OIDC max_age
*/
maxAge?: number;
}
/**
* Web Container

@@ -527,2 +506,3 @@ *

export { }
{
"name": "@authgear/web",
"version": "0.13.0",
"version": "0.14.0",
"license": "Apache-2.0",

@@ -13,5 +13,5 @@ "main": "dist/authgear-web.cjs.js",

"devDependencies": {
"@authgear/core": "0.13.0",
"@authgear/core": "0.14.0",
"core-js-pure": "3.6.5"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc