diff --git a/src/test/java/com/gloddy/server/common/BaseApiTest.java b/src/test/java/com/gloddy/server/common/BaseApiTest.java index 6b9a1e13..cb230276 100644 --- a/src/test/java/com/gloddy/server/common/BaseApiTest.java +++ b/src/test/java/com/gloddy/server/common/BaseApiTest.java @@ -109,7 +109,7 @@ protected User createUser() { } protected String getTokenAfterLogin(User user) { - AccessPayload accessPayload = AccessPayload.of(user.getPhone().toString()); + AccessPayload accessPayload = AccessPayload.of(user.getId().toString()); return jwtTokenBuilder.createToken(accessPayload); }