public BaseResponce <AccessToken> CreateAccessTokenByRefreshToken(string refreshToken) { BaseResponce <PersonelTablosu> personelResponce = personelService.RefreshTokenilePersoneliGetir(refreshToken); if (personelResponce.Success) { if (personelResponce.Extra.RefreshTokenEndDate > DateTime.Now) { AccessToken accessToken = tokenHendler.CreateAccessToken(personelResponce.Extra); personelService.RefreshTokenKaydet(personelResponce.Extra.PersonelId, accessToken.RefreshToken); return(new BaseResponce <AccessToken>(accessToken)); } else { return(new BaseResponce <AccessToken>("RefreshToken Süresi Dolmuş")); } } else { return(new BaseResponce <AccessToken>("Refresh Token Bulunamadı")); } }