# PassportSerializerService Class

Module
import { PassportSerializerService } from "@tsed/passport"
Source/packages/passport/src/services/PassportSerializerService.ts

# Overview

class PassportSerializerService {
    protected converterService: ConverterService;
<span class="token keyword">constructor</span><span class="token punctuation">(</span>converterService<span class="token punctuation">:</span> <a href="/api/common/mvc/services/ConverterService.html"><span class="token">ConverterService</span></a><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token function">serialize</span><span class="token punctuation">(</span>user<span class="token punctuation">:</span> <a href="/api/passport/domain/UserInfo.html"><span class="token">UserInfo</span></a><span class="token punctuation">,</span> done<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">void</span><span class="token punctuation">;</span>
<span class="token function">deserialize</span><span class="token punctuation">(</span>obj<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">,</span> done<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">void</span><span class="token punctuation">;</span>

}

# Members

protected converterService: ConverterService;

serialize(user: UserInfo, done: any): void;

deserialize(obj: any, done: any): void;

Other topics