Created
January 9, 2021 00:50
-
-
Save cesargdm/30062a4a42e95da272d8508afd4e5d5c to your computer and use it in GitHub Desktop.
A more useful example than https://docs.mongodb.com/charts/saas/embed-chart-stitch-auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tenant = context.token && context.token.tenant | |
if (!tenant) return false | |
return { tenant: { $eq: ObjectId(tenant) } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment