-
Notifications
You must be signed in to change notification settings - Fork 61
STITCH-1720 - Implement Server (Node.js) SDK #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f42dd50 to
020480e
Compare
adamchel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM mod a few nits
| import StitchUser from "../StitchUser"; | ||
| import StitchUserFactoryImpl from "./StitchUserFactoryImpl"; | ||
|
|
||
| /** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] Don't think we need any of these Partial things.
| * Partial JSDOM window.location containing only the | ||
| * properties and method we need | ||
| */ | ||
| interface PartialLocaion { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] assuming this same typo exists in browser, you should probably drive-by fix it there as well as delete here.
| info[DeviceFields.APP_VERSION] = this.appInfo.localAppVersion; | ||
| } | ||
|
|
||
| info[DeviceFields.PLATFORM] = "server"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[minor] shouldn't this be node-server or js-server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
packages/server/sdk/README.md
Outdated
| ### Using the SDK | ||
|
|
||
| #### Initialize the SDK | ||
| 1. When your app or webpage is initialized, run the following code to initialize the Stitch SDK, replacing `<your-client-app-id>` with your Stitch application's client app ID: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] app or webpage -> Node.js service
jsflax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big PR, but LGTM! Good job on the FileStorage part
No description provided.