Skip to content

Instantly share code, notes, and snippets.

export interface OffersListProps {
- Items: [offerItem];
+ offers: Offer[];
}
signIn
- stores,
- storesDetails,
- offers,
- rewards,
- getTokenEpic,
+ retrieveStoredCredentialsAndSignIn,
+ getStores,
+ getStoreDetails,
+ getOffers,
- import { storesDetailsActions }
+ import { storeDetailsActions }
+ export interface AuthSuccessResponse {
+ access_token: string;
+ }
- token_type: string | null;
- access_token: string | null;
- isLoader: boolean;
isMakingAuthRequest: boolean;
isLoggedIn: boolean;
- authToken: string | null;
- loyalty_access_token: string | null;
+ authToken?: string;
+ loyaltyToken?: string;
- dispatch(authAsyncActions.signInRequest())
- dispatch(authAsyncActions.getToken())
+ // This retrieves the token when successful
+ dispatch(authAsyncActions.signInRequest())
aws cognito-idp admin-set-user-password --user-pool-id $USER_POOL_ID --username $USERNAME --password $PASSWORD --permanent
Ionic:
Ionic CLI : 5.2.1 (/Users/acrites/.config/yarn/global/node_modules/ionic)
Ionic Framework : @ionic/angular 4.6.0
@angular-devkit/build-angular : 0.800.6
@angular-devkit/schematics : 8.0.6
@angular/cli : 8.0.6
@ionic/angular-toolkit : 2.0.0
Cordova:
type F<S> = <R>(fn: (s: S) => R) => R;
const foob: F<number> = cb => cb(1);
const bar = foob<string>(num => num.toString());
import { useContext } from 'react';
import parse from 'parse-color';
import { ColorAppContext } from '~/ColorApp';
export function useColor() {
const { hex, rgba, setHex, setRgba } = useContext(ColorAppContext);
const updateHex = hexValue => {
const { hex, rgba } = parse(hexValue);