1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use Claim;
use new;
use ;
// Replace this with state! we want something that could store any T like extension used in http::Extension!
/*
All the state added in this layer are transient which means it's shared among request
tapped into request run authenticate which populate the context claim!
let auth = AuthenticationBuilder::new(/Some State/)
.add_cookie()
.add_jwt()
.add_state(|state| state.add(String::new()))
*/
// THis state should be shared among Context you see
// Hot context created on every Request so each Request has it's own context