clockworklabs / clockworklabs/SpacetimeDB

Improved SpacetimeAuth Web UX

Open
#5,205 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
Rust
Stars
25.2k
Forks
1.1k
Avg merge
2d 7h
Merged PRs (30d)
46

Description

Improved SpacetimeAuth Web UX

Summary

I’d like to request improvements to the SpacetimeAuth web login experience, especially for apps using third-party providers like Google and Discord.

Issues

1. Extra authorization step

The current identity-provider flow appears to require these steps:

  1. Click login button on app
  2. Click “Login with Google/Discord/etc.”
  3. Click authorize with the provider
  4. Click “Authorize Application”

That fourth step is confusing for new users because they feel they already authorized the login provider. Ideally, third-party auth would only require selecting the provider and approving the provider login.

If the extra step is required for technical reasons, the page should more clearly explain what is being authorized and why.

2. Login screen polish

Play testers said the SpacetimeAuth login page looked somewhat “sketchy,” especially when only Google and Discord providers are available and email login is not enabled.

A few CSS/layout improvements would help it feel more trustworthy and consistent with the polish of the main SpacetimeDB website.

3. Embedded login option

It would be super helpful to support embedding the provider selection directly inside an app, similar to Firebase Auth, instead of requiring a redirect away from the page.

4. Role management

Role management would still be useful, but it is lower priority for me because I already implemented a custom solution.

Impact

These changes would reduce login friction and improve trust for users trying apps built on SpacetimeDB, and prevent losing new players in the onboarding process.

Requested by @doodlechaos via the SpacetimeDB site.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the current SpacetimeAuth web login flow, including the Google and Discord provider authorization steps and the login page layout. Define a narrower scope and acceptance criteria before implementation; the issue currently combines authorization UX, visual polish, embedded login, and role management without naming files or tests.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, authorization, design, frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.