Add role
This commit is contained in:
parent
f875ef4071
commit
a0c50b8d7a
1 changed files with 2 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ class ApiHelper {
|
|||
DateTime.now().add(Duration(days: 7)).millisecondsSinceEpoch ~/
|
||||
1000,
|
||||
"iat": DateTime.now().millisecondsSinceEpoch ~/ 1000,
|
||||
"roles": ["user"],
|
||||
},
|
||||
subject: user.userId,
|
||||
issuer: settings.issuer,
|
||||
|
|
@ -87,6 +88,7 @@ class ApiHelper {
|
|||
"id_token": token,
|
||||
"access_token": token, // TODO: Use real access token
|
||||
"token_type": "Bearer",
|
||||
|
||||
"expires_in": 600,
|
||||
}),
|
||||
headers: {"Content-Type": "application/json"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue