Skip to content

Commit

Permalink
Session: make csrfToken not nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
dsevillamartin committed Nov 17, 2021
1 parent 4bba10a commit 93514d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/common/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default class Session {
/**
* The CSRF token.
*/
csrfToken: string | null;
csrfToken: string;

constructor(user: User | null, csrfToken: string | null) {
constructor(user: User | null, csrfToken: string) {
this.user = user;
this.csrfToken = csrfToken;
}
Expand Down

0 comments on commit 93514d2

Please sign in to comment.