rctf icon indicating copy to clipboard operation
rctf copied to clipboard

CTFTime OAuth redirect to `/registration`

Open chen-robert opened this issue 4 years ago • 0 comments

Ideally this would redirect to /registration while passing the token through using history state, however preact-router does not support attaching state (in JS) to a history entry. We can still implement this by implementing a state store using context and invalidate on any route change, which is enough to implement this.

Originally posted by @ethanwu10 in https://github.com/redpwn/rCTF/pull/200

chen-robert avatar Apr 15 '20 08:04 chen-robert