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.7.0 to 0.8.0

57

index.d.ts

@@ -216,10 +216,4 @@

/**
* Whether the application is a third-party app.
*
* @public
*/
isThirdParty?: boolean;
/**
* @public
*/
apiClient: T;

@@ -241,2 +235,6 @@ /**

*/
abstract refreshTokenStorage: ContainerStorage;
/**
* @internal
*/
accessToken?: string;

@@ -471,2 +469,15 @@ /**

/**
* @public
*/
export declare class MemoryStorageDriver implements StorageDriver {
backingStore: {
[key: string]: string | undefined;
};
constructor();
get(key: string): Promise<string | null>;
set(key: string, value: string): Promise<void>;
del(key: string): Promise<void>;
}
/**
* OAuthError represents the oauth error response.

@@ -679,7 +690,15 @@ * https://tools.ietf.org/html/rfc6749#section-4.1.2.1

/**
* isThirdParty indicate if the application a third party app.
* A third party app means the app doesn't share common-domain with Authgear thus the session cookie cannot be shared.
* If not specified, default to false. So by default the application is considered first party.
* sessionType indicates how session is supposed to be stored.
* This must match the server side configuration.
*
* If your backend is a server-side rendering website or webapp,
* then you should use cookie.
*
* Normally, you need to set up a custom domain so that
* your backend and Authgear can both read and write cookie in the same root domain.
* You also need to tell the SDK cookie is being used, by specifying "cookie" here.
*
* If not specified, default to "refresh_token".
*/
isThirdParty?: boolean;
sessionType?: "cookie" | "refresh_token";
/**

@@ -689,2 +708,8 @@ * Skip refreshing access token. Default is false.

skipRefreshAccessToken?: boolean;
/**
* 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;
}

@@ -711,2 +736,7 @@

*/
export declare const sessionStorageStorageDriver: StorageDriver;
/**
* @public
*/
export declare class WebAPIClient extends BaseAPIClient {

@@ -729,2 +759,7 @@ _fetchFunction: {

export declare class WebContainer<T extends WebAPIClient> extends BaseContainer<T> {
/**
* @public
*/
sessionType: "cookie" | "refresh_token";
refreshTokenStorage: ContainerStorage;
constructor(options?: ContainerOptions<T>);

@@ -755,4 +790,2 @@ /**

*
* To allow re-authentication of different user smoothly for third-party app, default value for `options.prompt` is `login`.
*
* @param options - authorize options

@@ -759,0 +792,0 @@ */

{
"name": "@authgear/web",
"version": "0.7.0",
"version": "0.8.0",
"license": "Apache-2.0",

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

"devDependencies": {
"@authgear/core": "0.7.0"
"@authgear/core": "0.8.0"
}
}

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