pwa-auth 3.8.0 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/base/firebase/message.d.ts.map +1 -1
- package/base/firebase/message.js +1 -0
- package/base/firebase/message.js.map +1 -1
- package/base/webcomponents/css/animation.js +3 -3
- package/base/webcomponents/css/animation.js.map +1 -1
- package/base/webcomponents/drawer/drawer.d.ts +5 -1
- package/base/webcomponents/drawer/drawer.d.ts.map +1 -1
- package/base/webcomponents/drawer/drawer.js +90 -42
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.d.ts.map +1 -1
- package/base/webcomponents/settings/input/uploader.js +45 -20
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/docs/drawer-slide.md +27 -23
- package/docs/google-sign-in-safari.md +120 -0
- package/docs/sliders.md +7 -7
- package/package.json +2 -1
- package/source/pwa-auth.js +22 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/settings/input/uploader.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAkB,MAAQ,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAe,mBAAmB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAY,MAAe,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAuB,aAAa,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAQ,qCAAqC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAsB,2BAA2B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,EAAE,oBAAoB,EAAE,M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AAwB;AACf;IAAhB,KAAK,EAAE;;4CAAqB;AACZ;IAAhB,KAAK,EAAE;;0CAAmB;AAEV;IAAhB,KAAK,EAAE;;8CAA8B;AACrB;IAAhB,KAAK,EAAE;;2CAA4B;AACnB;IAAhB,KAAK,EAAE;;4CAA6B;AACpB;IAAhB,KAAK,EAAE;;0CAA2B;AAClB;IAAhB,KAAK,EAAE;;0CAAsB;AAuYhC,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC"}
|
package/docs/drawer-slide.md
CHANGED
|
@@ -4,7 +4,7 @@ The drawer unrolls downward from wherever the tag sits, and its buttons ride the
|
|
|
4
4
|
|
|
5
5
|
The controls sit on the host edge. `--pwa_inset` defaults to `0`. `--pwa_max_width` defaults to `400px`: the form column fills a narrow host, then centers at that cap. Signed-in drawer links use that same column. The drawer header stays full width. The host is `display: block`, `width: 100%`, `min-width: 0`, so it follows a flex or grid track. A page sets either variable on `user-drawer`, `user-login`, `user-settings`, and `email-reset`. Do not set `--pwa_max_width` on `:host` inside the component; that would beat the page.
|
|
6
6
|
|
|
7
|
-
The form swap is a transform inside `.inner`. The drawer rolls
|
|
7
|
+
The form swap is a transform inside `.inner`. The drawer rolls on one mover: `.drawer-clip` is set, with no transition, to the taller of the two window heights plus 60px for the shadow, and only `section.userDrawer` eases `transform` on `--pwa_slide` (`2s`, `ease-in-out`). The page login and the settings tabs still ease their own clip height and sheet transform, each inside its own file. There is no shared roll module.
|
|
8
8
|
|
|
9
9
|
## How the form swap works
|
|
10
10
|
|
|
@@ -48,13 +48,15 @@ These do not run the form swap:
|
|
|
48
48
|
|
|
49
49
|
What you see: the drawer's bottom edge moves down on open and up on close. The last control stays on that edge, like the roller of a scroll. The title and the top of the form come into view from above the clip, and leave the same way. The page heading does not move.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
The drawer has one clock. The clip is a window. The sheet is what moves.
|
|
52
52
|
|
|
53
53
|
```
|
|
54
|
-
clip .drawer-clip overflow hidden, height
|
|
55
|
-
sheet section.userDrawer translateY eases, holds header
|
|
54
|
+
clip .drawer-clip overflow hidden, height set with no transition
|
|
55
|
+
sheet section.userDrawer translateY eases, holds header, forms, shadow, and radius
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
Easing `height` on the main thread and `transform` on the compositor with the same duration still drifts. On a slow CPU the gap under `.inner`'s border moves. The clip no longer transitions `height` or `max-height`. `rollBetween` writes the clip height immediately: `max(from, to) + 60px`. That 60px is room for `box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16)`. The clip is `pointer-events: none`, and the sheet is `pointer-events: auto`, so the spare area does not catch clicks under the drawer. The shadow and the `18px` bottom radius sit on `section.userDrawer`, so the edge you see is the sheet. The sheet's height is the measured float. It is not rounded up.
|
|
59
|
+
|
|
58
60
|
`.wrapper` starts under the header. Rolling only `.inner` would leave the title stuck while the form rode the edge. The sheet is the whole `section.userDrawer`.
|
|
59
61
|
|
|
60
62
|
The same picture, with different elements, lives in the other two components. Nothing is shared.
|
|
@@ -69,7 +71,7 @@ The same picture, with different elements, lives in the other two components. No
|
|
|
69
71
|
|
|
70
72
|
### No shared roll
|
|
71
73
|
|
|
72
|
-
`typescript/webcomponents/css/roll.ts` is gone. Each component keeps its own `rollBetween`, its own clip and sheet class names, and its own `transitionend` listener.
|
|
74
|
+
`typescript/webcomponents/css/roll.ts` is gone. Each component keeps its own `rollBetween`, its own clip and sheet class names, and its own `transitionend` listener. On the drawer the listener is on `section.userDrawer` and it waits for `transform`. It ignores any event whose target is not that sheet, so a form transform inside it cannot finish the roll early. Login and settings still listen on their own clips.
|
|
73
75
|
|
|
74
76
|
A shared `.roll` class, a shared `:host { transition: height, max-height }`, or one helper that wrote those inline styles was enough to ease a component that had not been asked to move. The drawer shell no longer transitions `height`, `max-height`, or `transform`. `drawerShell` only holds the closed backstop: `max-height: 0`, `visibility: hidden`, `pointer-events: none`, with no transition. `sliding` lifts that backstop. The motion itself is the style binding below.
|
|
75
77
|
|
|
@@ -87,31 +89,33 @@ That paint is static. `motion` is reflected only after it, and the roll's `trans
|
|
|
87
89
|
|
|
88
90
|
`rollBetween` then eases. It locks the start px with `transition: none`, reads `offsetHeight` so the next change has a from-value, and writes the end px with `transition` set to `var(--pwa_slide, 2s) ease-in-out`. `height` and `max-height` are the same px, because `max-height` only caps and cannot hold a shorter sheet open.
|
|
89
91
|
|
|
90
|
-
###
|
|
92
|
+
### One mover at progress p
|
|
91
93
|
|
|
92
|
-
`p` runs 0 → 1 with `ease-in-out`. `H` is the sheet's height in px.
|
|
94
|
+
`p` runs 0 → 1 with `ease-in-out`. `H` is the sheet's exact height in px. The clip does not take `p`. For an open from 0 it is set to `H + 60` before the first animated frame. The sheet then eases:
|
|
93
95
|
|
|
94
|
-
- clip height = `p * H`
|
|
95
96
|
- sheet `translateY` = `(p - 1) * H` (start `-H`, which is `-100%`, end `0`)
|
|
96
|
-
-
|
|
97
|
+
- the visible bottom is the sheet's bottom, shadow included
|
|
98
|
+
- `.inner`'s border stays 12px above that edge, because both live on the sheet
|
|
97
99
|
|
|
98
|
-
Close swaps the ends: translateY runs `0` → `-H
|
|
100
|
+
Close swaps the ends: the clip stays at `H + 60` while translateY runs `0` → `-H`. When that transform ends, the clip drops to `0` and the padding drops to `0`, so the shut drawer takes no clicks and shows nothing.
|
|
99
101
|
|
|
100
|
-
A height change that does not start at 0 (a taller
|
|
102
|
+
A height change that does not start at 0 (a taller or shorter form) uses the sheet's real height `S` and window ends `A` → `B`:
|
|
101
103
|
|
|
102
|
-
- clip = `A +
|
|
103
|
-
- translateY =
|
|
104
|
+
- clip height = `max(A, B) + 60`, set at the start, no transition
|
|
105
|
+
- translateY = window − S
|
|
104
106
|
- start `A - S`, end `B - S`
|
|
105
107
|
|
|
106
|
-
When the new sheet is the thing on screen, `S = B`, so it finishes at `translateY: 0` and starts at `A - B`.
|
|
108
|
+
When the new sheet is the thing on screen, `S = B`, so it finishes at `translateY: 0` and starts at `A - B`. Open from 0 is the `-100%` case of the same formula. The resting closed sheet stays at `-100%` so boot does not have to measure. After the transform ends, an open drawer returns to `height: auto` and `padding-bottom: 60px` so a later reflow is not stuck and the shadow still has room.
|
|
109
|
+
|
|
110
|
+
Login and settings still ease clip height and the sheet together. Their `p` still moves both. The drawer does not.
|
|
107
111
|
|
|
108
112
|
### Why the px value has to be measured
|
|
109
113
|
|
|
110
|
-
`max-height` only eases between two lengths, and it only caps. It cannot hold a box open taller than its content, so a shrink would drop the bottom immediately.
|
|
114
|
+
`max-height` only eases between two lengths, and it only caps. It cannot hold a box open taller than its content, so a shrink would drop the bottom immediately. Login and settings still set `height` and `max-height` to the same px value. The drawer does not ease either one. `none` and `auto` have no midpoint, so they snap. A cap of `100dvh` or `9999px` does ease, but the timing function is spread across that whole range. A 480px drawer inside a 1000px range is fully open at 48% of the time, and the named ease is not what you see. The open path reads the sheet once with the clip cap released (no paint) and keeps that exact float. Rounding it up leaves a seam under the sheet. After the sheet's `transform` `transitionend`, the drawer binding goes back to `height: auto` and `max-height: none`, with padding for the shadow. The next close, or the next height change, measures again.
|
|
111
115
|
|
|
112
116
|
### Visibility, inert, reduced motion
|
|
113
117
|
|
|
114
|
-
`sliding` turns on in the same turn as the open. `visibility` and `pointer-events` come on with it, and `inert` comes off. It turns off only when
|
|
118
|
+
`sliding` turns on in the same turn as the open. `visibility` and `pointer-events` come on with it, and `inert` comes off. It turns off only when `section.userDrawer` fires `transform` `transitionend` and the sheet is parked (`height + translateY` is under 2px). A bubbled transform from a form does not qualify (`event.target` must be the sheet). That is the close, not a second timer. `prefers-reduced-motion: reduce` sets `--pwa_slide` to `0s` on that host, and `rollBetween` snaps to the end state with `transition: none` and does not wait for `transitionend`.
|
|
115
119
|
|
|
116
120
|
Signing out while the drawer is open does not swap in the login form until that clip has reached 0. The close measures the account menu, so `translateY` starts at 0 and the menu rolls up. The login form is what the next open shows. The same end step runs when reduced motion snaps the clip shut. Returning focus uses `preventScroll`, so the page does not jump. `placeAnchor()` runs again before the close. The host is `position: relative` and the clip is `absolute` at the top of the host. A page grid should give `user-drawer` the row between the header and the content, so that anchor does not have to pull the tag up with a large `top`.
|
|
117
121
|
|
|
@@ -131,8 +135,8 @@ Copy the roll into that component. Do not import a shared helper, and do not reu
|
|
|
131
135
|
|
|
132
136
|
1. Put `--pwa_slide: 2s` on that component's `:host`, and `0s` inside `prefers-reduced-motion`. Give the clip a class that exists only in this file. `display: block`, `overflow: hidden`.
|
|
133
137
|
2. Bind the clip and the sheet with `styleMap`. The first render is the resting state and `transition: none`.
|
|
134
|
-
3. On a user change after that first update, remember the
|
|
135
|
-
4. On
|
|
138
|
+
3. On a user change after that first update, remember the window, render the new sheet, measure its height, and run this component's own from/to ease. `translateY` is window minus sheet height. The drawer sets the clip height up front and eases only the transform. Login and settings still ease `height` and `max-height` to that same px.
|
|
139
|
+
4. On the drawer's sheet `transform` `transitionend`, and only when `event.target` is the sheet, set the open binding back to `auto` with shadow padding, or collapse a closed clip to `0`. Login and settings still do this from their clip's `max-height` `transitionend`.
|
|
136
140
|
5. Do not put a height transition on `:host` in a stylesheet other components import. Do not translate a sheet that leaves out an element that should ride the edge.
|
|
137
141
|
|
|
138
142
|
### Files
|
|
@@ -177,7 +181,7 @@ On the way open, the panel appears to finish early, and the named ease is not th
|
|
|
177
181
|
|
|
178
182
|
### What the drawer open and close uses
|
|
179
183
|
|
|
180
|
-
The drawer
|
|
184
|
+
The drawer's clip binding always sets `transition: none`. It never eases `height` or `max-height`. The sheet's `transform` eases with `var(--pwa_slide, 2s) ease-in-out` only while that roll is running. At rest the sheet transition is `none`. `drawerShell` does not ease `:host`. After the open (and after a form-swap glide) the clip binding becomes `height: auto`, `max-height: none`, and `padding-bottom: 60px`. A closed rest is `height: 0` and `padding-bottom: 0`. The timings table in [Slides](sliders.md) lists the one duration. Login and settings still ease their clip height on that same duration.
|
|
181
185
|
|
|
182
186
|
## Pitfalls
|
|
183
187
|
|
|
@@ -187,11 +191,11 @@ The drawer clip's bound `height` and `max-height`, and the sheet's bound `transf
|
|
|
187
191
|
- Do not fake the form swap with a large `max-height`. The visible motion will be shorter than the duration, and the ease will look wrong.
|
|
188
192
|
- The visibility delay on `.content` must be `var(--pwa_slide)`, not a different literal. Shorter, and the leaving form vanishes mid-slide. Longer, and it stays painted after it is off screen. The visibility duration stays `0s`. It snaps. It does not fade.
|
|
189
193
|
- `.opened` must set its own transition with a `0s` visibility delay. If it inherits the close delay, the arriving form is invisible for the whole slide.
|
|
190
|
-
- Do not give `.spec`, `.inner`, or `.wrapper` their own height or transform duration. The drawer's clip is `.drawer-clip`. The roller is `.userDrawer`. A second clock drifts. The header is outside `.wrapper`, so rolling only `.inner` leaves the header behind.
|
|
191
|
-
- Do not animate `max-height
|
|
194
|
+
- Do not give `.spec`, `.inner`, or `.wrapper` their own height or transform duration. The drawer's clip is `.drawer-clip`. The roller is `.userDrawer`. A second clock drifts. The header is outside `.wrapper`, so rolling only `.inner` leaves the header behind. Do not ease the clip's `height` next to the sheet's `transform`. That pair is the drift.
|
|
195
|
+
- Do not animate the drawer's `max-height`. Measure the sheet in exact px, set the clip to the taller window plus the shadow room, and ease only the transform. Set `auto` only after the sheet's own `transform` `transitionend`.
|
|
192
196
|
- Do not share the roll. A `:host` height transition, or a class name used by more than one component, eases something that should have stayed still. One component's `transitionend` must not call another component's release.
|
|
193
197
|
- The first render binds the resting state with `transition: none`. Turning the transition on in that same first paint, or writing the closed px after an open first frame, is the open-then-shut flicker.
|
|
194
|
-
- `sliding` has to stay up until the close
|
|
198
|
+
- `sliding` has to stay up until the close transform parks the sheet. Clearing it when `drawer` flips hides the roll-up. The host backstop is `max-height: 0` with no transition, so it cannot play that flicker by itself. The clip itself must still be set back to `0` at the end.
|
|
195
199
|
- Focusing a control inside the unrolling box scrolls it. `.focus({ preventScroll: true })` keeps the header at the top edge. Reset `scrollTop` when the open starts.
|
|
196
200
|
- Reduced motion has to set `--pwa_slide: 0s`. Zeroing only `transition-duration` leaves a delay that still uses the variable.
|
|
197
201
|
- A more specific `.userDrawer .content.closed` rule is how `f607737` broke the drawer while the shared rule still looked right.
|
|
@@ -201,7 +205,7 @@ The drawer clip's bound `height` and `max-height`, and the sheet's bound `transf
|
|
|
201
205
|
|
|
202
206
|
## Changing the duration
|
|
203
207
|
|
|
204
|
-
Change `--pwa_slide` on the component you are timing. The drawer's and the page login's variable is on `:host` in `animation.ts`. Settings sets its own on `:host` in `settings.ts`. That component's roll, its form-swap height glide, its form transform, and its form visibility delay read that variable. `sliding` ends on the
|
|
208
|
+
Change `--pwa_slide` on the component you are timing. The drawer's and the page login's variable is on `:host` in `animation.ts`. Settings sets its own on `:host` in `settings.ts`. That component's roll, its form-swap height glide, its form transform, and its form visibility delay read that variable. On the drawer, `sliding` ends on the sheet's `transform` `transitionend`, so it follows whatever that time is. Leave the visibility duration at `0s`, and leave `.motion .opened` at `visibility 0s linear 0s`. Do not hardcode a second duration in `rollBetween`.
|
|
205
209
|
|
|
206
210
|
Update the `2s` figures in `docs/sliders.md` and in this file. Rebuild so `base/webcomponents/` matches `typescript/`, then `source/pwa-auth.js` and `website/javascript/pwa-auth.js`.
|
|
207
211
|
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Google sign-in on iPhone and Safari (Firebase Auth PWAs)
|
|
2
|
+
|
|
3
|
+
This guide is for any Firebase Auth app. `<your-domain>` is the site people open. `<project-id>` is the Firebase project id. The same steps apply to `www.<your-domain>` when that host is in use.
|
|
4
|
+
|
|
5
|
+
## 1. Why
|
|
6
|
+
|
|
7
|
+
Safari's tracking prevention blocks the cross-site storage Firebase redirect sign-in uses. That storage lives on `authDomain`. When `authDomain` is `<project-id>.firebaseapp.com` and the app runs on `<your-domain>`, those are different sites. The person signs in at Google, comes back, and is signed out.
|
|
8
|
+
|
|
9
|
+
A desktop popup often stays on your origin, so the same setup can look fine there. iPhone Safari and a home-screen app leave the page and come back. They need the handler on `<your-domain>`.
|
|
10
|
+
|
|
11
|
+
## 2. Google Cloud: the web client
|
|
12
|
+
|
|
13
|
+
1. Open [APIs & Services, Credentials](https://console.cloud.google.com/apis/credentials).
|
|
14
|
+
2. Select the project for `<project-id>`.
|
|
15
|
+
3. Under OAuth 2.0 Client IDs, open the client whose Type is Web application. The name may vary.
|
|
16
|
+
4. Add an Authorized JavaScript origin: `https://<your-domain>`.
|
|
17
|
+
5. Add an Authorized redirect URI: `https://<your-domain>/__/auth/handler`.
|
|
18
|
+
6. Keep the existing `firebaseapp.com` origins and redirect URIs.
|
|
19
|
+
7. Save. Allow a few minutes.
|
|
20
|
+
|
|
21
|
+
Credentials is in the left menu. The Enabled APIs list is a different page.
|
|
22
|
+
|
|
23
|
+
## 3. Firebase: authorized domains
|
|
24
|
+
|
|
25
|
+
1. Open the Firebase console. Go to Authentication, then Settings, then Authorized domains.
|
|
26
|
+
2. Confirm `<your-domain>` is listed. Choose Add domain when it is missing.
|
|
27
|
+
|
|
28
|
+
Repeat sections 2 and 3 for `www.<your-domain>` when the site uses that host. The origin is `https://www.<your-domain>`. The redirect URI is `https://www.<your-domain>/__/auth/handler`.
|
|
29
|
+
|
|
30
|
+
## 4. Code
|
|
31
|
+
|
|
32
|
+
On the production domain, set `authDomain` to the page's own host. On localhost and on preview channels, keep `<project-id>.firebaseapp.com`.
|
|
33
|
+
|
|
34
|
+
Use `signInWithPopup` in a normal browser tab. Use `signInWithRedirect` and `getRedirectResult` in the installed standalone PWA. Detect that with `matchMedia('(display-mode: standalone)')` or `navigator.standalone`. When the popup fails with `auth/popup-blocked`, use the redirect.
|
|
35
|
+
|
|
36
|
+
```javascript
|
|
37
|
+
import {
|
|
38
|
+
GoogleAuthProvider,
|
|
39
|
+
getRedirectResult,
|
|
40
|
+
signInWithPopup,
|
|
41
|
+
signInWithRedirect
|
|
42
|
+
} from 'firebase/auth';
|
|
43
|
+
|
|
44
|
+
const host = location.hostname;
|
|
45
|
+
const preview = host === 'localhost'
|
|
46
|
+
|| host === '127.0.0.1'
|
|
47
|
+
|| host.endsWith('.firebaseapp.com')
|
|
48
|
+
|| host.endsWith('.web.app');
|
|
49
|
+
|
|
50
|
+
const authDomain = preview ? '<project-id>.firebaseapp.com' : host;
|
|
51
|
+
|
|
52
|
+
function installedApp() {
|
|
53
|
+
return window.matchMedia('(display-mode: standalone)').matches
|
|
54
|
+
|| navigator.standalone === true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export async function signInWithGoogle(auth) {
|
|
58
|
+
const provider = new GoogleAuthProvider();
|
|
59
|
+
if (installedApp()) {
|
|
60
|
+
await signInWithRedirect(auth, provider);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
try {
|
|
64
|
+
await signInWithPopup(auth, provider);
|
|
65
|
+
} catch (error) {
|
|
66
|
+
if (error && error.code === 'auth/popup-blocked') {
|
|
67
|
+
await signInWithRedirect(auth, provider);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Call once after Auth is ready. A normal page load returns null.
|
|
75
|
+
export function resumeGoogleRedirect(auth) {
|
|
76
|
+
return getRedirectResult(auth);
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Pass `authDomain` in the Firebase config the page already uses.
|
|
81
|
+
|
|
82
|
+
Keep the service worker from caching or rewriting `/__/auth` and `/__/firebase`. A worker that sends every navigation to `index.html` must leave those paths alone.
|
|
83
|
+
|
|
84
|
+
```javascript
|
|
85
|
+
self.addEventListener('fetch', (event) => {
|
|
86
|
+
const path = new URL(event.request.url).pathname;
|
|
87
|
+
if (path.startsWith('/__/auth') || path.startsWith('/__/firebase')) return;
|
|
88
|
+
// Cache and respond for the rest of the app.
|
|
89
|
+
});
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Firebase Hosting serves `/__/auth/handler` on a connected custom domain. Another host proxies `/__/auth` and `/__/firebase` to `https://<project-id>.firebaseapp.com`. The proxy steps are in [Firebase's redirect best practices](https://firebase.google.com/docs/auth/web/redirect-best-practices).
|
|
93
|
+
|
|
94
|
+
## 5. Test after you deploy
|
|
95
|
+
|
|
96
|
+
Wait a few minutes after the console saves, then deploy the `authDomain` change.
|
|
97
|
+
|
|
98
|
+
1. iPhone Safari tab. Open `https://<your-domain>`, continue with Google, and come back signed in.
|
|
99
|
+
2. Home-screen icon. Open the installed app and sign in the same way.
|
|
100
|
+
3. Desktop Safari. The popup signs you in. When the browser blocks the popup, the redirect still returns you signed in.
|
|
101
|
+
|
|
102
|
+
## 6. Troubleshooting
|
|
103
|
+
|
|
104
|
+
| What you see | Fix |
|
|
105
|
+
| --- | --- |
|
|
106
|
+
| `redirect_uri_mismatch` | Add Authorized redirect URI `https://<your-domain>/__/auth/handler` on the Web application client. Include `www` when that host is in use. |
|
|
107
|
+
| `auth/unauthorized-domain` | Add `<your-domain>` under Firebase Authentication, Settings, Authorized domains. |
|
|
108
|
+
| Signed out after returning from Google | On the production page, `authDomain` is still `<project-id>.firebaseapp.com`, or a service worker is caching or rewriting `/__/auth`. |
|
|
109
|
+
|
|
110
|
+
## With pwa-auth
|
|
111
|
+
|
|
112
|
+
pwa-auth does not set `authDomain`. Pass the host from section 4 in `initialize({ config })`, in the `firebase-config` attribute, or in `window.process.env.FIREBASE_CONFIG`.
|
|
113
|
+
|
|
114
|
+
Continue with Google calls `signInWithGoogle` in `typescript/firebase/google.ts`.
|
|
115
|
+
|
|
116
|
+
- A phone user agent (iPhone, iPad, iPod, or Android) uses `signInWithRedirect`. That includes a normal iPhone Safari tab. The check is the user agent. It does not read `display-mode: standalone` or `navigator.standalone`.
|
|
117
|
+
- Any other browser uses `signInWithPopup`. `auth/popup-blocked` falls back to `signInWithRedirect`.
|
|
118
|
+
- `watchGoogleRedirect` calls `getRedirectResult` once, after `initialize` has an app.
|
|
119
|
+
|
|
120
|
+
The package does not register a service worker. Skip `/__/auth` and `/__/firebase` in the worker that ships with the page. An iPhone Safari tab in this package already uses the redirect, so sections 2–4 apply to that tab and to the home-screen icon.
|
package/docs/sliders.md
CHANGED
|
@@ -6,11 +6,11 @@ Three components slide, and each one owns its roll. `user-drawer` (`typescript/w
|
|
|
6
6
|
|
|
7
7
|
`animation.ts` is the form swap only: `--pwa_slide`, `.opened` / `.closed`, and the drawer shell's closed backstop. Settings does not import it. The full roll write-up is [The roll](drawer-slide.md#the-roll).
|
|
8
8
|
|
|
9
|
-
The fields are flush with the element. Spacing belongs to the page: `--pwa_inset` defaults to `0`. The form column fills a narrow host and, once the host is wider than `--pwa_max_width` (`400px`), stays that wide and centers. The page login column centers under the full-width heading. Signed-in drawer links use that same column. Set either variable on `user-drawer`, `user-login`, `user-settings`, or `email-reset`. The drawer header and the settings tabs stay full width. Each host is `display: block` with `width: 100%` and `min-width: 0` (`user-icon` is `width: fit-content`, `max-width: 100%`). A resize while a roll is in motion remeasures that component and eases from the current
|
|
9
|
+
The fields are flush with the element. Spacing belongs to the page: `--pwa_inset` defaults to `0`. The form column fills a narrow host and, once the host is wider than `--pwa_max_width` (`400px`), stays that wide and centers. The page login column centers under the full-width heading. Signed-in drawer links use that same column. Set either variable on `user-drawer`, `user-login`, `user-settings`, or `email-reset`. The drawer header and the settings tabs stay full width. Each host is `display: block` with `width: 100%` and `min-width: 0` (`user-icon` is `width: fit-content`, `max-width: 100%`). A resize while a roll is in motion remeasures that component and eases from the current window with the sheet bottom still on that edge. The drawer eases only the sheet transform. Login and settings still ease their clip height too.
|
|
10
10
|
|
|
11
11
|
Two motions, one duration, per component.
|
|
12
12
|
|
|
13
|
-
- The drawer rolls. `.drawer-clip`
|
|
13
|
+
- The drawer rolls. `.drawer-clip` is set, with no transition, to the measured window plus room for the shadow. `section.userDrawer` is the only thing that eases, so its border and its shadowed edge stay a fixed gap apart.
|
|
14
14
|
- Closed forms share one grid cell. Class `closed` is `position: absolute` and translates `translate3d(0, -100%, 0)`. Once `.inner` has class `motion`, `visibility` waits out `--pwa_slide`, then hides. Settings panels do not use these classes.
|
|
15
15
|
|
|
16
16
|
## How it works
|
|
@@ -39,8 +39,8 @@ On the drawer, inside `.userDrawer`:
|
|
|
39
39
|
|
|
40
40
|
| Piece | Element | What moves |
|
|
41
41
|
|---|---|---|
|
|
42
|
-
| Drawer clip | `.drawer-clip` |
|
|
43
|
-
| Drawer sheet | `section.userDrawer` |
|
|
42
|
+
| Drawer clip | `.drawer-clip` | set to the window plus shadow room, no transition |
|
|
43
|
+
| Drawer sheet | `section.userDrawer` | `translateY` on this host's `--pwa_slide` |
|
|
44
44
|
| Drawer and page forms | `.content` with `opened` / `closed` | `transform` `--pwa_slide` after `motion`, then `visibility` |
|
|
45
45
|
| Settings panels | `.settings-clip` / `.settings-sheet` | that component's own roll |
|
|
46
46
|
| Page login card | `.login-clip` / `section.service` | that component's own roll, on `registerTwo` |
|
|
@@ -49,7 +49,7 @@ Page login uses `spec` / `wrapper` / `inner` / `content` for the form swap, and
|
|
|
49
49
|
|
|
50
50
|
## Triggers
|
|
51
51
|
|
|
52
|
-
- Attribute `drawer` on `user-drawer`, after the first update, rolls `.
|
|
52
|
+
- Attribute `drawer` on `user-drawer`, after the first update, rolls `section.userDrawer`. Attribute `sliding` holds `visibility`, `pointer-events`, and `inert` until that sheet's `transform` `transitionend`. The `[drawer]` attribute does not set a transform. The clip height is not eased.
|
|
53
53
|
- Class `motion` on `.inner` arms `.content` transitions. It is absent on the first paint. The drawer and the page login each set their own.
|
|
54
54
|
- Classes `opened` and `closed` on `.content`, bound with `classMap`. Drawer forms follow `registerOne`. Page forms follow `registerTwo`. Settings panels follow the tab by rolling `.settings-clip`, not by those classes.
|
|
55
55
|
- Attribute `on` on `.spec` is `display`. It is not a slide.
|
|
@@ -60,9 +60,9 @@ Page login uses `spec` / `wrapper` / `inner` / `content` for the form swap, and
|
|
|
60
60
|
|
|
61
61
|
| Piece | Duration | Easing |
|
|
62
62
|
|---|---|---|
|
|
63
|
-
|
|
|
63
|
+
| Drawer sheet transform. Login and settings clip `height` / `max-height` and sheet transform | `--pwa_slide` (`2s`) | `ease-in-out` |
|
|
64
64
|
| Form-swap height glide | `--pwa_slide` (`2s`) | `ease-in-out` |
|
|
65
|
-
| `sliding` drop (`visibility`, `pointer-events`, `inert`) | on the
|
|
65
|
+
| `sliding` drop (`visibility`, `pointer-events`, `inert`) | on the drawer's sheet `transform` `transitionend` | n/a |
|
|
66
66
|
| `.content` transform, after `motion` | `--pwa_slide` (`2s`) | `ease-in-out` |
|
|
67
67
|
| `.content` visibility delay when closing | `--pwa_slide` (`2s`) | `linear` |
|
|
68
68
|
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://www.jackspublishing.com",
|
|
7
7
|
"email": "jack.solutionbox@gmail.com"
|
|
8
8
|
},
|
|
9
|
-
"version": "3.8.
|
|
9
|
+
"version": "3.8.2",
|
|
10
10
|
"description": "Five elements: user-icon, user-drawer, user-login, user-settings, and email-reset. pwa- events, a small API, and --pwa_ theme variables.",
|
|
11
11
|
"homepage": "https://pwa-authentic.firebaseapp.com",
|
|
12
12
|
"repository": {
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
"source/empty.jpg",
|
|
92
92
|
"README.md",
|
|
93
93
|
"docs/drawer-slide.md",
|
|
94
|
+
"docs/google-sign-in-safari.md",
|
|
94
95
|
"docs/sliders.md",
|
|
95
96
|
"license",
|
|
96
97
|
"LICENSES.txt"
|