Commit 7f16101a by Ashiqur Rahman

add body in state

parent e6eda4f9
......@@ -6,7 +6,23 @@ class App extends Component {
constructor() {
super();
this.state = {
name: null
"aud": "jitsi",
"sub": "meet3.synesisit.info",
"nbf": 1603793119,
"context": {
"user": {
"avatar": "http://google.com",
"name": "nah",
"email": "nat@gmail.com",
"id": "usjkhsafdikuhas",
"roomName": null,
"category": "guest"
}
},
"iss": "A81FF",
"exp": 1603879519,
"iat": 1603793119,
"room": "VideoConf"
}
}
......@@ -19,7 +35,7 @@ class App extends Component {
<div>
<h1>Simple JWT token App</h1>
<div>
<input type="text" placeholder="Room name:" onChange={(event) => {this.setState({name: event.target.value})}} />
<input type="text" placeholder="Room name:" onChange={(event) => {this.setState({roomName: event.target.value})}} />
<br></br>
<button onClick={() => {this.setToken()}}>Login</button>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment