super-graph Malheureusement, super-graph n'a pas tenu les promesses qu'il semblait annoncer. Je propose donc de basculer sur un serveur Go classique (via goweb). L'authentification OpenID Connect étant gérée côté backend et non plus côté frontend.
19 lines
507 B
TypeScript
19 lines
507 B
TypeScript
import { Action } from "redux";
|
|
import { User } from "../../types/user";
|
|
|
|
export const FETCH_PROFILE_REQUEST = 'FETCH_PROFILE_REQUEST';
|
|
export const FETCH_PROFILE_SUCCESS = 'FETCH_PROFILE_SUCCESS';
|
|
export const FETCH_PROFILE_FAILURE = 'FETCH_PROFILE_FAILURE';
|
|
|
|
export interface fetchProfileRequestAction extends Action {
|
|
|
|
}
|
|
|
|
export interface fetchProfileSuccessAction extends Action {
|
|
profile: User
|
|
}
|
|
|
|
|
|
export function fetchProfile(): fetchProfileRequestAction {
|
|
return { type: FETCH_PROFILE_REQUEST }
|
|
} |