Skip to content

Managing vault(s) #49

Answered by stephenwf
tomcrane asked this question in Q&A
Aug 13, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

All very good questions. Hyperion has a global vault as a default that will end up covering 99% of use-cases. When creating a new Vault() instance, you can override some of the internals - such as how IIIF is fetched. Madoc uses this to add authentication for example, and do some transformations after fetching.

When using the web components though, it's unlikely that you would need to set the vault manually. The global is also available at:

HyperionVault.globalVault();

Which would be preferred over: window.__hyperionVault__

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@tomcrane
Comment options

tomcrane Aug 17, 2021
Maintainer Author

@stephenwf
Comment options

Answer selected by stephenwf
Comment options

You must be logged in to vote
1 reply
@stephenwf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants