package net.cismon.urlshortener.service import net.cismon.urlshortener.dao.AuthDao import org.springframework.stereotype.Service @Service class AuthService(val authDao: AuthDao) { fun getTokenById(id: Long): String? = authDao.findById(id)?.token }