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).
10
10
## [ 5.0.1] - 2023-10-12
11
11
12
12
- Fixes user info from primary user id query
13
+ - Fixes ` deviceIdHash ` issue
13
14
14
15
## [ 5.0.0] - 2023-09-19
15
16
Original file line number Diff line number Diff line change @@ -1112,7 +1112,7 @@ private static PasswordlessDeviceRowMapper getInstance() {
1112
1112
1113
1113
@ Override
1114
1114
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" ),
1116
1116
result .getString ("phone_number" ), result .getString ("link_code_salt" ),
1117
1117
result .getInt ("failed_attempts" ));
1118
1118
}
@@ -1130,7 +1130,7 @@ private static PasswordlessCodeRowMapper getInstance() {
1130
1130
1131
1131
@ Override
1132
1132
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 () ,
1134
1134
result .getString ("link_code_hash" ), result .getLong ("created_at" ));
1135
1135
}
1136
1136
}
You can’t perform that action at this time.
0 commit comments