Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(web): supporting .ts and.js config, exported types #114

Merged
merged 36 commits into from
Sep 6, 2021
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9299e27
chore: add types
reslear Jun 10, 2021
a834896
refactor: add `options` arg to `init` method
reslear Jun 10, 2021
8c4aa41
docs: update instruction
reslear Jun 10, 2021
43660bd
refactor: set `cli` plugin name
reslear Jun 10, 2021
aa05f8d
refactor: remove catch
reslear Aug 7, 2021
9721c4b
docs: format and add table `config`
reslear Aug 17, 2021
5d9cdd0
docs: refactor table
reslear Aug 17, 2021
4eb03b8
docs: upd usage
reslear Aug 17, 2021
3d8f786
refactor: set `grantOfflineAccess` same as google
reslear Aug 17, 2021
109a883
feat: add prettier with ionic config
reslear Aug 17, 2021
d0adaa5
Merge branch 'master' into refactor/config
reslear Aug 17, 2021
6245bac
refactor: add `client_id` description
reslear Aug 17, 2021
339c130
Merge branch 'master' into refactor/config
reslear Aug 21, 2021
fbaa03f
Merge branch 'master' into refactor/config
reslear Aug 21, 2021
34c913c
chore: add `@capacitor/cli`
reslear Aug 21, 2021
e58303c
refactor(web): merge option, use client_id
reslear Aug 21, 2021
b113057
style: up devDependencies
reslear Aug 21, 2021
182599f
refactor: default operator
reslear Aug 21, 2021
e30d96a
refactor: upd variables
reslear Aug 21, 2021
080a9e2
refactor: ssr fix
reslear Aug 21, 2021
d8e69a0
feat: export user
reslear Aug 23, 2021
7a128fb
refactor: drop `user` types file
reslear Aug 23, 2021
b6cf563
refactor: return types
reslear Aug 23, 2021
1b9cc77
refactor: revert promise
reslear Aug 23, 2021
5a6123c
refactor: optional, defaults fixes
reslear Aug 24, 2021
1d5d588
refactor: fix bind this, default init options
reslear Aug 24, 2021
21ed04d
refactor: add options types for `init`
reslear Aug 24, 2021
5211d12
refactor: set partial for options, set `client_id` to camelCase
reslear Aug 24, 2021
e82b75a
refactor: upd to initialize
reslear Aug 24, 2021
7b57e28
feat: fix `refreshToken` types
reslear Aug 24, 2021
5cc90b0
Merge remote-tracking branch 'upstream/master' into refactor/config
reslear Sep 6, 2021
9be3e4b
refactor: `init` to `initialize`
reslear Sep 6, 2021
40542c5
refactor: export new types
reslear Sep 6, 2021
789c604
fix: set `initialize` CAP_PLUGIN_METHOD
reslear Sep 6, 2021
d760f22
refactor: make plugin types optional
reslear Sep 6, 2021
266c994
docs: add missing keys
reslear Sep 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: ssr fix
  • Loading branch information
reslear committed Aug 21, 2021
commit 080a9e27b7c6b535e25ac53fbdf167ba9555cb5c
4 changes: 4 additions & 0 deletions src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export class GoogleAuthWeb extends WebPlugin implements GoogleAuthPlugin {
}

loadScript() {
if (typeof document === 'undefined') {
return;
}

const scriptId = 'gapi';
const scriptEl = document?.getElementById(scriptId);

Expand Down