https://github.com/avesbox/secure_session
Secure stateless cookie session
https://github.com/avesbox/secure_session
cookie fastify secure-session sessions
Last synced: about 1 month ago
JSON representation
Secure stateless cookie session
- Host: GitHub
- URL: https://github.com/avesbox/secure_session
- Owner: avesbox
- License: mit
- Created: 2024-10-22T15:02:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-30T20:26:26.000Z (over 1 year ago)
- Last Synced: 2025-01-26T19:17:07.951Z (over 1 year ago)
- Topics: cookie, fastify, secure-session, sessions
- Language: Dart
- Size: 34.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# secure_session
Secure stateless cookie session
## Installation
```dart
dart pub add secure_session
```
## Usage
```dart
import 'package:secure_session/secure_session.dart';
void main() {
final session = SecureSession(
options: SessionOptions(
secret: 'secret',
salt: 'salt',
cookieName: 'cookie',
)
);
final data = {'key': 'value'};
session.write(data, 'cookie');
final result = session.read('cookie');
print(result); // {key: value}
}
```