public interface RefreshTokenService
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getByShopId(java.lang.String shopId)
Gets a refresh token for the passed shop id from
the database.
|
void |
save(java.lang.String shopId,
java.lang.String refreshToken)
Stores the given refresh token to the database
mapped to the passed shop id.
|
void save(java.lang.String shopId, java.lang.String refreshToken) throws javax.persistence.PersistenceException
Identifier
- of the shop to map the refresh token to.The
- refresh token to store.javax.persistence.PersistenceException
- in case an error occurred
while saving the data.java.lang.String getByShopId(java.lang.String shopId)
Identifier
- of the shop to get a refresh token for.