Cookies
This commit is contained in:
parent
ddac000655
commit
17d6ca6b48
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:html' as html5;
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:core';
|
||||
import 'dart:html' as html;
|
||||
import 'dart:io';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:invoiceninja_flutter/redux/static/static_state.dart';
|
||||
|
|
@ -25,9 +25,9 @@ class PersistenceRepository {
|
|||
state.rebuild((b) => b..userCompany.token.token = '');
|
||||
|
||||
if (kIsWeb) {
|
||||
print('## COOKIE: ${html5.window.document.cookie}');
|
||||
html5.window.document.cookie =
|
||||
'token=$token; expires=Thu, 18 Dec 2099 12:00:00 UTC; Secure';
|
||||
print('## COOKIE: ${html.window.document.cookie}');
|
||||
html.window.document.cookie =
|
||||
'token=$token; expires=Sat, 19 Dec 2099 12:00:00 UTC; Secure; SameSite=Strict;';
|
||||
}
|
||||
|
||||
// TODO persist stateWithoutToken
|
||||
|
|
|
|||
Loading…
Reference in New Issue