func (f *FileTokenStore) Get() (*usso.SSOData, error) {
	data, err := ioutil.ReadFile(f.path)
	if err != nil {
		return nil, errgo.Notef(err, "cannot read token")
	}
	var tok usso.SSOData
	if err := json.Unmarshal(data, &tok); err != nil {
		return nil, errgo.Notef(err, "cannot unmarshal token")
	}
	return &tok, nil
}
// Get implements TokenStore.Get by
// reading the token from the FileTokenStore's file.
Get implements TokenStore.Get by
reading the token from the FileTokenStore's file.
// Get implements TokenStore . Get by // reading the token from the FileTokenStore ' s file .
func (f *FileTokenStore) Get() (*usso.SSOData, error) {
	data, err := ioutil.ReadFile(f.path)
	if err != nil {
		return nil, errgo.Notef(err, "cannot read token")
	}
	var tok usso.SSOData
	if err := json.Unmarshal(data, &tok); err != nil {
		return nil, errgo.Notef(err, "cannot unmarshal token")
	}
	return &tok, nil
}
func ( f * FileTokenStore ) Get ( ) ( * usso . SSOData , error ) { data , err := ioutil . ReadFile ( f . path ) if err != nil { return nil , errgo . Notef ( err , " " ) } var tok usso . SSOData if err := json . Unmarshal ( data , & tok ) ; err != nil { return nil , errgo . Notef ( err , " " ) } return & tok , nil }
Get implements TokenStore.Get by
reading the token from the FileTokenStore's file.
Get implements TokenStore . Get by reading the token from the FileTokenStore ' s file .