Skip to content

add additional reload prop #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spring-media/ps-web-apis",
"version": "1.10.26",
"version": "1.11.0",
"description": "",
"main": "dist/ps-web-apis.cjs.js",
"module": "dist/ps-web-apis.esm.js",
Expand Down
2 changes: 2 additions & 0 deletions src/ps-web-apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export interface WhoamiV1 {
* @param {String} config.props.template - valid choices are "register" and "login"
* @param {String} config.props.variant - variant of the brand that should be shown e.g bild or welt
* @param {boolean} [config.props.abortable] - user can leave auth screen if true (not yet implemented)
* @param {boolean} [config.props.reloadOnNewAuth] - reload page if true after a new login or registration / no reload on already logged in user, default = false
* @param {String} [config.props.loginHeadline]
* @param {String} [config.props.registerHeadline]
* @param {String} [config.props.loginCta]
Expand Down Expand Up @@ -248,6 +249,7 @@ export type WonderwallProps = {
template: "login" | "register";
variant: WonderwallVariant;
abortable?: boolean;
reloadOnNewAuth?: boolean;
loginHeadline?: string;
registerHeadline?: string;
loginCta?: string;
Expand Down