gists/0000-ayb-example-auth-list.md

32 lines
878 B
Markdown

## Auth list
```json
{
"authentication_proof":
[
{
"type": "fermet",
"token": "ayb_fAy28Q4667q_4nTowidCyetNyYYtd2X2iA9ywFRLirrn9"
},
{
"type": "jwt",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzb2ZpYXJpdHoiLCJ0b2tlbiI6ImF5Yl9mQXkyOFE0NjY3cV80blRvd2lkQ3lldE55WVl0ZDJYMmlBOXl3RlJMaXJybjkiLCJ1c2VyIjp7ImRpc3BsYXlOYW1lIjoiU29mw61hIEFyaXR6IiwiZGF0YWJhc2VzIjpbImV4YW1wbGUxLnNxbGl0ZSIsImV4YW1wbGUyLnNxbGl0ZSJdfSwiaWF0IjoxNTE2MjM5MDIyfQ.bRnWgO849ljqtaUu_VNLdHSqqFA6P6KqTcDps6lADi0"
}
]
}
```
## Decoded JWT
The decoded payload of the example jwt:
```json
{
"sub": "sofiaritz",
"token": "ayb_fAy28Q4667q_4nTowidCyetNyYYtd2X2iA9ywFRLirrn9",
"user": {
"displayName": "Sofía Aritz",
"databases": ["example1.sqlite", "example2.sqlite"]
},
"iat": 1516239022
}
```