Commit 3c668eb
committed
Check that returned user has roles
You can get undefined roles when the request succeeds but does not
return an actual user (like if you are trying to break the extension by
testing it with a non-Coder domain and you get a 200 and HTML back).
That might be a bug with the SDK actually but for now fix it here.1 parent f440f5e commit 3c668eb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments