File tree 2 files changed +3
-2
lines changed
examples/google_one_tap_auth
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 9
9
# For local development, you should add http://localhost:8080 to the authorized JavaScript origins.
10
10
# In production, you should add the domain of your website to the authorized JavaScript origins.
11
11
# See https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid#get_your_google_api_client_id.
12
- GOOGLE_CLIENT_ID = '484798726913-t4es9ner8aglom3miptbnq1m23dsqagi.apps.googleusercontent.com '
12
+ GOOGLE_CLIENT_ID = '... '
13
13
14
14
15
15
@ui .page ('/' )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Example:
13
13
14
14
def __post_init__ (self ) -> None :
15
15
"""Post-initialization hook."""
16
- name = self .title .lower ().replace (' ' , '_' )
16
+ name = self .title .lower ().replace (' ' , '_' ). replace ( '-' , '_' )
17
17
content = [p for p in (PATH / name ).glob ('*' ) if not p .name .startswith (('__pycache__' , '.' , 'test_' ))]
18
18
filename = 'main.py' if len (content ) == 1 else ''
19
19
self .url = f'https://github.com/zauberzeug/nicegui/tree/main/examples/{ name } /{ filename } '
@@ -71,4 +71,5 @@ def __post_init__(self) -> None:
71
71
Example ('Signature Pad' , 'A custom element based on [signature_pad](https://www.npmjs.com/package/signature_pad' ),
72
72
Example ('OpenAI Assistant' , "Using OpenAI's Assistant API with async/await" ),
73
73
Example ('Redis Storage' , 'Use Redis storage to share data across multiple instances behind a reverse proxy or load balancer' ),
74
+ Example ('Google One-Tap Auth' , 'Authenticate users via Google One-Tap' ),
74
75
]
You can’t perform that action at this time.
0 commit comments