Interface RecipeInterface
Methods
getUserById
- getUserById(input: { userId: string }): Promise<undefined | User>
Parameters
input: { userId: string }
Returns Promise<undefined | User>
getUserByThirdPartyInfo
- getUserByThirdPartyInfo(input: { thirdPartyId: string; thirdPartyUserId: string }): Promise<undefined | User>
Parameters
input: { thirdPartyId: string; thirdPartyUserId: string }
thirdPartyId: string
thirdPartyUserId: string
Returns Promise<undefined | User>
getUsersByEmail
- getUsersByEmail(input: { email: string }): Promise<User[]>
Parameters
Returns Promise<User[]>
signInUp
- signInUp(input: { email: { id: string; isVerified: boolean }; thirdPartyId: string; thirdPartyUserId: string }): Promise<{ createdNewUser: boolean; status: "OK"; user: User } | { error: string; status: "FIELD_ERROR" }>
Parameters
input: { email: { id: string; isVerified: boolean }; thirdPartyId: string; thirdPartyUserId: string }
email: { id: string; isVerified: boolean }
id: string
isVerified: boolean
thirdPartyId: string
thirdPartyUserId: string
Returns Promise<{ createdNewUser: boolean; status: "OK"; user: User } | { error: string; status: "FIELD_ERROR" }>