mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
[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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user