store tokens with .serialize() not .toString()

pull/306/merge
Justin Richer 2013-02-20 09:25:29 -05:00
parent 970e3f2f79
commit a184b79b06
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken {
@Basic
@Column(name="token_value")
public String getValue() {
return jwtValue.toString();
return jwtValue.serialize();
}
/**

View File

@ -117,7 +117,7 @@ public class OAuth2RefreshTokenEntity implements OAuth2RefreshToken {
@Basic
@Column(name="token_value")
public String getValue() {
return jwt.toString();
return jwt.serialize();
}
/**