Skip to content

Commit

Permalink
True as default
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Jul 11, 2023
1 parent 8c73e7b commit 4faadd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Enhancement: Allow local storage for auth token

We've introduced a new env var WEB_OPTION_TOKEN_STORAGE_LOCAL, when set true, the auth token will be stored in the
We've introduced a new env var WEB_OPTION_TOKEN_STORAGE_LOCAL, when set to true(default), the auth token will be stored in the
browser's local storage instead the session storage, this will effect in a persisted login state across multiple
browser tabs.

Expand Down
2 changes: 1 addition & 1 deletion packages/web-pkg/src/configuration/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class ConfigurationManager {
get(options, 'openLinksWithDefaultApp', true)
)
set(this.optionsConfiguration, 'upload.companionUrl', get(options, 'upload.companionUrl', ''))
set(this.optionsConfiguration, 'tokenStorageLocal', get(options, 'tokenStorageLocal', false))
set(this.optionsConfiguration, 'tokenStorageLocal', get(options, 'tokenStorageLocal', true))
}

get options(): OptionsConfiguration {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-runtime/src/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const state = {
sharingRecipientsPerPage: 200,
contextHelpersReadMore: true,
openLinksWithDefaultApp: true,
tokenStorageLocal: false,
tokenStorageLocal: true,
privacyUrl: '',
imprintUrl: '',
accessDeniedHelpUrl: ''
Expand Down

0 comments on commit 4faadd4

Please sign in to comment.