-
Notifications
You must be signed in to change notification settings - Fork 88
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
[FEAT]: adding meta field to @magic-sdk magic constructor #708
[FEAT]: adding meta field to @magic-sdk magic constructor #708
Conversation
@@ -118,6 +118,7 @@ export interface MagicSDKAdditionalConfiguration< | |||
testMode?: boolean; | |||
deferPreload?: boolean; | |||
useStorageCache?: boolean; | |||
meta?: any; // Generic field for clients to add metadata |
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.
Could you provide an example of well-structured metadata that our client, WC, has previously submitted? I'm interested in understanding the standards and quality they adhere to.
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.
They'll be submitting something like this:
meta: {
projectId: "abcd123"
}
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.
But the idea is that the meta field is unopinionated, so that any client can put identifying info in there to reference in event logs later on. They could for example put in their internal user ID, or classification tags.
π¦ Pull Request
Adding a meta field to the Magic constructor in the @magic-sdk package to allow arbitrary data to be sent to the Magic backend. Ping @bengriffin1 for more details.
β Fixed Issues
n/a
π¨ Test instructions
No test needed as of now
Please only add one label:
patch
: Bug Fix?minor
: New Feature?major
: Breaking Change?skip-release
: It's unnecessary to publish this change.π¦ Published PR as canary version:
Canary Versions
β¨ Test out this PR locally via: