Commit f414719
fix(connect): add missing randomBytes import and rename parseGoogleState (#211)
randomBytes was used in generateState() without being imported from
crypto, causing a ReferenceError crash on any GET /connect/github request.
Also renamed parseGoogleState to parseOAuthState since the function is
exclusively used in the GitHub connect flow — Google connect does not
exist in this file.
Closes #178
Signed-off-by: Prashantkumar Khatri <96608160+ShantKhatri@users.noreply.github.com>
Co-authored-by: Prashantkumar Khatri <96608160+ShantKhatri@users.noreply.github.com>1 parent da4d4e2 commit f414719
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments