[next] Cookie Support (#2339)

* feat: added cookie support to coral

* feat: adapt client to use cookies

* fix: safari input styles

* fix: lint

* fix: linting

* fix: support clearing cookies properly, oauth

* feat: support cookies for websocket upgrade requests

* fix: lint

* fix: tests
This commit is contained in:
Wyatt Johnson
2019-06-25 21:48:58 +02:00
committed by Vinh
parent 3576b6a943
commit e72b15c505
79 changed files with 375 additions and 278 deletions
@@ -31,16 +31,16 @@ export class TabBarContainer extends Component<Props> {
public render() {
const {
local: { loggedIn, activeTab },
local: { activeTab },
viewer,
} = this.props;
return (
<TabBar
activeTab={activeTab}
showProfileTab={loggedIn}
showProfileTab={Boolean(viewer)}
showConfigureTab={
!!this.props.viewer &&
can(this.props.viewer, Ability.CHANGE_STORY_CONFIGURATION)
!!viewer && can(viewer, Ability.CHANGE_STORY_CONFIGURATION)
}
onTabClick={this.handleSetActiveTab}
/>
@@ -52,7 +52,6 @@ const enhanced = withSetActiveTabMutation(
withLocalStateContainer(
graphql`
fragment TabBarContainerLocal on Local {
loggedIn
activeTab
}
`
@@ -5,7 +5,7 @@ import { createSinonStub } from "coral-framework/testHelpers";
import { OnPostMessageSetAccessToken } from "./OnPostMessageSetAccessToken";
it("Listens to event and sets auth token", () => {
it("Listens to event and sets access token", () => {
const token = "access-token";
const postMessage: any = {
on: (name: string, cb: (token: string) => void) => {