@salesforce/webapp-template-feature-react-authentication-experimental 1.47.0 → 1.48.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.
package/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.48.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.48.0...v1.48.1) (2026-02-21)
7
+
8
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
9
+
10
+
11
+
12
+
13
+
14
+ # [1.48.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.47.0...v1.48.0) (2026-02-20)
15
+
16
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
17
+
18
+
19
+
20
+
21
+
6
22
  # [1.47.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.46.2...v1.47.0) (2026-02-20)
7
23
 
8
24
  **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
@@ -24,7 +24,14 @@ global with sharing class WebAppLogin {
24
24
 
25
25
  String username = email.trim().toLowerCase();
26
26
  String sanitizedStartUrl = WebAppAuthUtils.getSanitizedStartUrl(startUrl, Site.getPathPrefix());
27
- PageReference loginResult = Site.login(username, password, sanitizedStartUrl);
27
+
28
+ PageReference loginResult;
29
+ try {
30
+ loginResult = Site.login(username, password, sanitizedStartUrl);
31
+ } catch (Exception loginEx) {
32
+ RestContext.response.statusCode = 400;
33
+ return new ErrorLoginResponse('Invalid username or password.');
34
+ }
28
35
 
29
36
  if (loginResult != null) {
30
37
  return new SuccessLoginResponse(loginResult.getUrl());
@@ -38,6 +45,7 @@ global with sharing class WebAppLogin {
38
45
  RestContext.response.statusCode = ex.statusCode;
39
46
  return new ErrorLoginResponse(ex.messages);
40
47
  } catch (Exception ex) {
48
+ WebAppAuthUtils.debugLog(ex, LoggingLevel.ERROR);
41
49
  RestContext.response.statusCode = 500;
42
50
  return new ErrorLoginResponse('An unexpected error occurred. Please contact your administrator.');
43
51
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "1.47.0",
3
+ "version": "1.48.1",
4
4
  "description": "Base SFDX project template",
5
5
  "private": true,
6
6
  "files": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-feature-react-authentication-experimental",
3
- "version": "1.47.0",
3
+ "version": "1.48.1",
4
4
  "description": "Authentication feature for web applications",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",
@@ -16,7 +16,7 @@
16
16
  "clean": "rm -rf dist"
17
17
  },
18
18
  "devDependencies": {
19
- "@salesforce/webapp-experimental": "^1.47.0",
19
+ "@salesforce/webapp-experimental": "^1.48.1",
20
20
  "@tanstack/react-form": "^1.27.7",
21
21
  "@types/react": "^19.2.7",
22
22
  "@types/react-dom": "^19.2.3",
@@ -40,5 +40,5 @@
40
40
  }
41
41
  }
42
42
  },
43
- "gitHead": "664bfe805c8d96ec2c7b8d3ce403295f420bf42c"
43
+ "gitHead": "3a6ed78f0171a5106e8716c8154ef20e2962bf59"
44
44
  }