File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/io/supertokens/storage/postgresql/queries Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010## [ 5.0.1] - 2023-10-12
1111
1212- Fixes user info from primary user id query
13+ - Fixes ` deviceIdHash ` issue
1314
1415## [ 5.0.0] - 2023-09-19
1516
Original file line number Diff line number Diff line change @@ -1112,7 +1112,7 @@ private static PasswordlessDeviceRowMapper getInstance() {
11121112
11131113 @ Override
11141114 public PasswordlessDevice map (ResultSet result ) throws Exception {
1115- return new PasswordlessDevice (result .getString ("device_id_hash" ), result .getString ("email" ),
1115+ return new PasswordlessDevice (result .getString ("device_id_hash" ). trim () , result .getString ("email" ),
11161116 result .getString ("phone_number" ), result .getString ("link_code_salt" ),
11171117 result .getInt ("failed_attempts" ));
11181118 }
@@ -1130,7 +1130,7 @@ private static PasswordlessCodeRowMapper getInstance() {
11301130
11311131 @ Override
11321132 public PasswordlessCode map (ResultSet result ) throws Exception {
1133- return new PasswordlessCode (result .getString ("code_id" ), result .getString ("device_id_hash" ),
1133+ return new PasswordlessCode (result .getString ("code_id" ), result .getString ("device_id_hash" ). trim () ,
11341134 result .getString ("link_code_hash" ), result .getLong ("created_at" ));
11351135 }
11361136 }
You can’t perform that action at this time.
0 commit comments