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E,IAAI,CAAC,WAAW;YAC7B,yBAAyB,EAAE,IAAI,CAAC,yBAAyB;YACzD,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;SAClD,CAAC;IACJ,CAAC;CACF;AAED,eAAe,oBAAoB,CAAC","sourcesContent":["import GoogleAuthData from './GoogleAuthData';\n\nclass GoogleAuthentication extends GoogleAuthData {\n clientId?: string;\n accessToken?: string;\n accessTokenExpirationDate?: number;\n refreshToken?: string;\n idToken?: string;\n idTokenExpirationDate?: number;\n\n constructor(options: any) {\n super(options);\n const {\n clientId,\n accessToken,\n accessTokenExpirationDate,\n refreshToken,\n idToken,\n idTokenExpirationDate,\n } = options;\n\n this.clientId = clientId;\n this.accessToken = accessToken;\n this.accessTokenExpirationDate = accessTokenExpirationDate;\n this.refreshToken = refreshToken;\n this.idToken = idToken;\n this.idTokenExpirationDate = idTokenExpirationDate;\n }\n\n equals(other: any): boolean {\n if (!super.equals(other) || !(other instanceof GoogleAuthentication)) {\n return false;\n }\n\n return (\n this.clientId === other.clientId &&\n this.accessToken === other.accessToken &&\n this.accessTokenExpirationDate === other.accessTokenExpirationDate &&\n this.refreshToken === other.refreshToken &&\n this.idToken === other.idToken &&\n this.idTokenExpirationDate === other.idTokenExpirationDate\n );\n }\n\n toJSON(): { [key: string]: any } {\n return {\n ...super.toJSON(),\n clientId: this.clientId,\n accessToken: this.accessToken,\n accessTokenExpirationDate: this.accessTokenExpirationDate,\n refreshToken: this.refreshToken,\n idToken: this.idToken,\n idTokenExpirationDate: this.idTokenExpirationDate,\n };\n }\n}\n\nexport default GoogleAuthentication;\n"]}
\No newline at end of file