Commit Graph
3 Commits
Author SHA1 Message Date
Mega MindandGitHub dc5e7adeb6 fix(auth): update RPC method names for authentication calls (#463)
* fix(auth): update RPC method names for authentication calls

Refactor authentication-related RPC method names to use underscores instead of dots for consistency. Updated methods include `get_state`, `get_session_token`, `clear_session`, and `store_session`.

chore: update OpenHuman version to 0.51.19

style: standardize string formatting in quickjs_libs/bootstrap.js and other files

- Replace single quotes with double quotes for string literals in various functions.
- Ensure consistent formatting across console logging and error handling.

fix(config): improve token retrieval logic in ops_core.rs

- Enhance the logic for retrieving the active session token from the credentials store, accommodating user-specific directories.

* test: align auth and OAuth assertions with current behavior

Update stale test expectations for underscore-style auth RPC methods and light-theme OAuth button classes, and make the bypass-login E2E assertion resilient to the current auth persistence model.

Made-with: Cursor

* chore: apply formatter output for login flow spec

Include Prettier formatting adjustments produced by the pre-push hook so the branch can pass repository push checks cleanly.

Made-with: Cursor
2026-04-09 22:20:20 +05:30
Steven Enamakel 3b9fd2e446 Refactor OAuth provider tests for consistency and readability
- Updated test files for Discord, GitHub, Google, and Twitter to improve code consistency by standardizing async function formatting and import statements.
- Enhanced readability by restructuring promise resolutions and waitFor assertions.
- Ensured uniformity in the handling of button click events across all OAuth provider tests.
2026-03-30 07:47:53 -07:00
M3gA-Mind b2edcb7b62 Add OAuth provider tests for Discord, GitHub, Google, and Twitter
- Implemented comprehensive unit tests for OAuthProviderButton across multiple providers: Discord, GitHub, Google, and Twitter.
- Covered rendering, OAuth flow in both web and Tauri environments, loading states, and error handling.
- Ensured consistent styling and behavior for each provider's button, including label, icon, and disabled states.
- Enhanced test coverage for backend URL retrieval and interaction with the OAuth flow.
2026-03-30 19:38:12 +05:30