Closed pahuja-sahil closed 3 weeks ago
@pahuja-sahil is attempting to deploy a commit to the Sanchit Bajaj's projects Team on Vercel.
A member of the Team first needs to authorize it.
The recent changes involve updating the authentication process in the backend and modifying the user details type definition. Specifically, the auth.api.ts
file now uses the createEmailPasswordSession
method and the OAuthProvider.Github
constant from the "appwrite" library. Additionally, the updateRecovery
method's parameter list has been simplified. In the auth.d.ts
file, a new optional accountId
field has been added to the userDetails
type.
File Path | Change Summary |
---|---|
src/backend/auth.api.ts |
Updated method calls related to account sessions and OAuth provider usage. |
src/types/auth.d.ts |
Added an optional accountId field to the userDetails type. |
sequenceDiagram
participant User
participant Backend
participant Appwrite
User->>Backend: login(email, password)
Backend->>Appwrite: createEmailPasswordSession(email, password)
Appwrite-->>Backend: session
Backend-->>User: session
User->>Backend: loginWithGithub()
Backend->>Appwrite: createOAuth2Session(OAuthProvider.Github)
Appwrite-->>Backend: session
Backend-->>User: session
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Related Issue
Fixed issue #338 .
Description
I have upgraded the appwrite to latest version i.e 15 and made few changes like changed one function parameter in auth.api.ts file according to the latest documentation for continuous functioning of the website. Basically I have made syntax changes in 1-2 files so that site can work originally as it was before upgraded to appwrite version 15. I have checked each and every file that could throw an error in the process.
Screenshots
This is pretty much the main syntax change that happened when i upgraded to version 15 where createEmailSession has now been changed to createEmailPasswordSession.
Kindly see to these changes and accept my pr if everything is good. Thank you.
Summary by CodeRabbit
accountId
field to user details for better account identification.