Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1013810 // Google Sign-In With Server Verify [OK]

JavaX module [tags: ai1-lol use-pretranspiled] - homepage

Download Jar. Uses 1658K of libraries. Click here for Pure Java version (3394L/23K/77K).

1  
!7
2  
3  
html {
4  
  if (eq(uri, "/verify")) {
5  
    Payload payload = printStruct(googleVerifyUserToken2(botCompanyGoogleSignInID(), params.get("token")));
6  
    ret payload != null
7  
      ? payload.getEmail() + " " + (payload.getEmailVerified() ? "(verified)" : "(not verified)")
8  
      : "No.";
9  
  }
10  
  
11  
  ret loadJQuery()
12  
    + googleSignIn_header()
13  
    + googleSignIn_signInButton(relativeRawBotLink(programID(), "verify"), "alert(data);", "")
14  
    + [[<p><a href="javascript:signOut()">Sign out</a></p>]];
15  
}

Author comment

Began life as a copy of #1013808

download  show line numbers  debug dex  old transpilations   

Travelled to 11 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013810
Snippet name: Google Sign-In With Server Verify [OK]
Eternal ID of this version: #1013810/14
Text MD5: ac7830bbf3c0a037d97e3cb405c292b1
Transpilation MD5: ea5461897c1f82e778bfd03d19316a0e
Author: stefan
Category: javax / web
Type: JavaX module
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-02 16:04:26
Source code size: 510 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 375 / 1476
Version history: 13 change(s)
Referenced in: [show references]