@absolutejs/auth 0.46.0 → 0.46.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +1 -1
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -203,7 +203,7 @@ export type AuthConfig<UserType> = {
203
203
  * `getUser` returns (via `NoInfer`), so they cannot disagree. This is also
204
204
  * the resolver the package uses to hydrate the typed `user` in
205
205
  * `protectRoute`'s context. */
206
- getUser: (sub: string) => UserType | Promise<UserType>;
206
+ getUser: (sub: string) => UserType | null | Promise<UserType | null>;
207
207
  providersConfiguration: OAuth2ConfigurationOptions;
208
208
  /** Override the `Secure` attribute on every cookie the package sets (session, OAuth state,
209
209
  * code_verifier, SSO nonce, ring, etc.). When omitted, defaults to
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.46.0",
2
+ "version": "0.46.1",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {