-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor all stores to remove the simplesessions dependency and adhere
to the new `simplesessions/v2` interface methods. This is a breaking change.` This commit also refactors securestore and changes its behaviour. This store is peculiar because it does not actually have a persistent backend store and instead uses the session/cookie ID string (value) itself as the encoded store. The older version thus relied on Session{} to write the cookie to the frontend, which is not ideal. This version removes the dependency and leaves the actual cookie writing to the implementer. This commit introduces a new `Flush()` method that returns the encoded values set using Set(), which the implementer can then write to a cookie externally (with a `Session.WriteCookie()`).
- Loading branch information
Showing
12 changed files
with
448 additions
and
580 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.