This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import styled from 'styled-components'; | |
import { ComponentClass, StatelessComponent } from 'react'; | |
export type Component<P> = ComponentClass<P> | StatelessComponent<P>; | |
interface FooProps { | |
message: string, | |
primary: boolean, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Config is a custom oauth2 config that is used to store the token | |
// in the datastore | |
type Config struct { | |
*oauth2.Config | |
} | |
// StoreToken is called when exchanging the token and saves the token | |
// in the datastore | |
func (c *Config) StoreToken(ctx context.Context, token *oauth2.Token) error { | |
log.Infof(ctx, "storing the token") |