@data-fair/lib-vue 1.21.0 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/session.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-vue",
3
- "version": "1.21.0",
3
+ "version": "1.21.1",
4
4
  "description": "Composables and other utilities for Vue applications in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [
package/session.js CHANGED
@@ -194,7 +194,7 @@ export async function getSession (initOptions) {
194
194
  const cookieOpts = { path: cookiesPath }
195
195
  if (org) { cookies.set('id_token_org', org, cookieOpts) } else { cookies.remove('id_token_org', cookieOpts) }
196
196
  if (dep) { cookies.set('id_token_dep', dep, cookieOpts) } else { cookies.remove('id_token_dep', cookieOpts) }
197
- if (role) { cookies.set('id_token_role', dep, cookieOpts) } else { cookies.remove('id_token_role', cookieOpts) }
197
+ if (role) { cookies.set('id_token_role', role, cookieOpts) } else { cookies.remove('id_token_role', cookieOpts) }
198
198
  if (updateState) { readState() }
199
199
  }
200
200
  const setAdminMode = async (adminMode, redirect) => {