package cn.reghao.tnb.auth.app.service;

import cn.reghao.tnb.auth.app.model.dto.AccountLoginDto;
import cn.reghao.tnb.auth.app.security.form.AccountAuthToken;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.validation.annotation.Validated;

/**
 * @author reghao
 * @date 2021-11-14 14:51:17
 */
public interface AccountLoginService extends UserDetailsService {
    AccountAuthToken getPreAuthentication(@Validated AccountLoginDto userLoginDto) throws AuthenticationException;
    AccountAuthToken authByPassword(AccountAuthToken authToken);
    AccountAuthToken authByVerifyCode(AccountAuthToken authToken);
}
