adapts the access and refresh token creation to the new structure