@pontive/pontkit-core 1.3.0 → 1.3.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.
@@ -0,0 +1,20 @@
1
+ import { EnvConfig } from '../types';
2
+ /**
3
+ * Where to send the browser once a flow has authenticated someone, or null to
4
+ * stay put.
5
+ *
6
+ * Pure, and separate from the provider, because the rule is easy to get subtly
7
+ * wrong and impossible to see when it is: getting it wrong means a page that
8
+ * finished its work and said nothing. That is what happened to invitations —
9
+ * the invitee was authenticated and the invitation accepted, while the page sat
10
+ * on the verification step, because the rule was "redirect only from the
11
+ * sign-in or sign-up page" and an invitation is answered on neither.
12
+ */
13
+ export interface PostAuthPage {
14
+ /** The page's path, e.g. window.location.pathname. */
15
+ pathname: string;
16
+ /** The page's query, e.g. window.location.search. */
17
+ search: string;
18
+ env: Pick<EnvConfig, "signinUrl" | "signupUrl" | "invitationUrl" | "signinRedirectUrl">;
19
+ }
20
+ export declare function postAuthDestination({ pathname, search, env }: PostAuthPage): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontive/pontkit-core",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "license": "MIT",
5
5
  "description": "A collection of core components for Pontive",
6
6
  "main": "dist/index.js",