Skip to content

feat: add publicKey param to package initialization parameters#33

Merged
karrui merged 4 commits intomasterfrom
feat/add-built-types
Jun 5, 2020
Merged

feat: add publicKey param to package initialization parameters#33
karrui merged 4 commits intomasterfrom
feat/add-built-types

Conversation

@karrui
Copy link
Contributor

@karrui karrui commented Jun 4, 2020

(I don't know why I named my branch the way I named it)

This PR adds a publicKey key option for the initialisation parameter for this package.
If the publicKey key is given, then all signing, webhook, and verification keys will be using the given public key instead of the package fallback keys.

Closes #30

@karrui karrui changed the title feat: add publicKey param to PackageInitParams type feat: add publicKey param to package initialization parameters Jun 4, 2020
@karrui karrui requested a review from liangyuanruo June 4, 2020 05:47
karrui added 4 commits June 5, 2020 10:09
`publicKey` and `mode` is typed to be mutually exclusive (for now, foresee removing mode entirely in the future).
If not given, then the app will fallback to its previous implementation and use the static public keys.
@karrui karrui force-pushed the feat/add-built-types branch from 18eccc8 to 495d8aa Compare June 5, 2020 02:09
@karrui karrui requested a review from mantariksh June 5, 2020 02:11
@karrui karrui merged commit b60bea8 into master Jun 5, 2020
@karrui karrui deleted the feat/add-built-types branch June 5, 2020 06:08
liangyuanruo pushed a commit that referenced this pull request Jan 27, 2021
* feat: add publicKey param to PackageInitParams type

`publicKey` and `mode` is typed to be mutually exclusive (for now, foresee removing mode entirely in the future).

* feat: add comment on new PackageInitParams shape in init function

* feat: use publicKey if given in PackageInitParams

If not given, then the app will fallback to its previous implementation and use the static public keys.

* feat: add `homeno` possible field type in FieldType type

That's a lot of typing type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow the injection of public keys upon initialisation

2 participants