Home
last modified time | relevance | path

Searched refs:sessionSecret (Results 1 – 25 of 35) sorted by relevance

12

/expo/home/api/__tests__/
H A DAuthSessions-test.js37 const { sessionSecret } = { sessionSecret: uuid.v4() }; property
40 await Store.dispatch(SessionActions.setSession({ sessionSecret })); field
47 expect(sessionSecret).toBeDefined();
48 expect(sessionSecret).toBe(retrievedSession.sessionSecret);
55 const { sessionSecret } = { sessionSecret: uuid.v4() }; property
58 await Store.dispatch(SessionActions.setSession({ sessionSecret })); field
95 'expo-session': sessionSecret,
/expo/packages/@expo/cli/src/api/user/
H A Duser.ts41 const hasCredentials = UserSettings.getAccessToken() || UserSettings.getSession()?.sessionSecret;
66 data: { sessionSecret },
69 const userData = await fetchUserAsync({ sessionSecret });
72 sessionSecret,
80 const sessionSecret = await getSessionUsingBrowserAuthFlowAsync({ constant
83 const userData = await fetchUserAsync({ sessionSecret });
86 sessionSecret,
103 sessionSecret,
105 sessionSecret: string;
121 'expo-session': sessionSecret,
H A DexpoSsoLauncher.ts68 const sessionSecret = url.searchParams.get('session_secret'); constant
70 if (!sessionSecret) {
73 resolve(sessionSecret);
/expo/home/api/
H A DAPIV2Client.ts81 const sessionSecret = session.sessionSecret; constant
83 if (!sessionSecret) {
91 ...(sessionSecret
95 'Expo-Session': sessionSecret,
109 const sessionSecret = session.sessionSecret; constant
114 ...(sessionSecret
118 'Expo-Session': sessionSecret,
H A DAuthApi.ts3 async function signOutAsync(sessionSecret: string | null): Promise<void> {
4 if (!sessionSecret) {
H A DApolloClient.ts22 const { sessionSecret } = Store.getState().session;
24 if (sessionSecret) {
28 'expo-session': sessionSecret,
/expo/home/utils/
H A DhasSessionSecret.ts1 export default function hasSessionSecret(session: { sessionSecret: string | null }): boolean {
2 return !!session.sessionSecret;
/expo/packages/@expo/cli/src/api/graphql/
H A Dclient.ts54 const sessionSecret = UserSettings.getSession()?.sessionSecret; constant
55 if (sessionSecret) {
58 'expo-session': sessionSecret,
/expo/home/redux/
H A DSessionReducer.ts4 sessionSecret: string | null;
10 sessionSecret: null,
H A DSessionActions.ts23 await AuthApi.signOutAsync(session.sessionSecret);
/expo/packages/expo-dev-launcher/bundle/functions/
H A DstartAuthSessionAsync.ts18 const sessionSecret = decodeURIComponent(query['session_secret'] as string); constant
19 return sessionSecret;
/expo/packages/@expo/cli/src/api/rest/
H A Dclient.ts66 const sessionSecret = UserSettings.getSession()?.sessionSecret; constant
67 if (sessionSecret) {
68 resolvedHeaders['expo-session'] = sessionSecret;
/expo/ios/Exponent/Kernel/DevSupport/
H A DEXSession.m56 - (NSString * _Nullable)sessionSecret
63 id sessionSecret = session[@"sessionSecret"];
64 if (sessionSecret && [sessionSecret isKindOfClass:[NSString class]]) {
65 return (NSString *)sessionSecret;
H A DEXSession.h12 - (NSString * _Nullable)sessionSecret;
/expo/packages/expo-dev-launcher/bundle/screens/__tests__/
H A DUserProfileScreen.test.tsx59 const sessionSecret = '321';
60 const { getByA11yLabel, getByText } = renderProfileScreen({ sessionSecret });
80 expect(setSessionAsync).toHaveBeenCalledWith(sessionSecret);
183 sessionSecret?: string;
187 const { userProfile = fakeUserProfile, sessionSecret = fakeSessionSecret } = options;
188 mockStartAuthSession.mockResolvedValue(sessionSecret);
/expo/packages/@expo/cli/src/api/user/__mocks__/
H A DUserSettings.ts3 sessionSecret: 'test-session-secret',
/expo/packages/@expo/cli/src/api/user/__tests__/
H A Duser-test.ts74 .reply(200, { data: { sessionSecret: 'SESSION_SECRET' } });
163 expect(UserSettings.getSession()?.sessionSecret).toBe('SESSION_SECRET');
166 expect(UserSettings.getSession()?.sessionSecret).toBeUndefined();
/expo/home/screens/AccountModal/
H A DLoggedOutAccountView.tsx44 …// after logging in, wait for redux action to dispatch, refetch with new sessionSecret, then dismi…
53 // if it's an issue with the sessionSecret being invalid, the user will be able to try to
54 // log in again and rewrite the sessionSecret
112 const sessionSecret = decodeURIComponent(encodedSessionSecret);
121 headers: { 'expo-session': sessionSecret },
140 sessionSecret,
/expo/packages/expo-dev-launcher/bundle/providers/
H A DUserContextProvider.tsx42 const sessionSecret = await startAuthSessionAsync(type).catch((cancelled) => {});
44 if (sessionSecret) {
45 await setSessionAsync(sessionSecret);
/expo/packages/create-expo/src/
H A DsessionStorage.ts12 sessionSecret: string;
/expo/home/redux/__mocks__/
H A DStore.ts4 session: { sessionSecret: null },
/expo/packages/@expo/config/build/
H A DgetUserState.d.ts18 sessionSecret?: string;
/expo/packages/@expo/config/src/
H A DgetUserState.ts23 sessionSecret?: string;
/expo/packages/@expo/cli/src/api/rest/__tests__/
H A Dclient-test.ts130 sessionSecret: 'my-secret-token',
150 sessionSecret: 'my-secret-token',
/expo/ios/Exponent/Kernel/AppLoader/
H A DEXFileDownloader.m112 NSString *sessionSecret = [[EXSession sharedInstance] sessionSecret];
113 if (sessionSecret) {
114 [request setValue:sessionSecret forHTTPHeaderField:@"Expo-Session"];

12