@absolutejs/auth 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ export type CallbackCookie = Record<string, Cookie<string | undefined>> & {
33
33
  };
34
34
  export type OnCallbackSuccess<UserType> = (({ authProvider, tokenResponse, providerInstance, session, userSessionId, originUrl, cookie, redirect, status }: {
35
35
  providerInstance: OAuth2Client<ProviderOption>;
36
- authProvider: string;
36
+ authProvider: ProviderOption;
37
37
  tokenResponse: OAuth2TokenResponse;
38
38
  session: SessionRecord<UserType>;
39
39
  unregisteredSession: UnregisteredSessionRecord;
@@ -118,7 +118,7 @@ export type ClientProviders = Record<string, {
118
118
  searchParams?: [string, string][];
119
119
  }>;
120
120
  export type InsantiateUserSessionProps<UserType> = {
121
- authProvider: string;
121
+ authProvider: ProviderOption;
122
122
  tokenResponse: OAuth2TokenResponse;
123
123
  session: SessionRecord<UserType>;
124
124
  unregisteredSession: UnregisteredSessionRecord;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.21.0",
2
+ "version": "0.21.1",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {