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).

!7

html {
  if (eq(uri, "/verify")) {
    Payload payload = printStruct(googleVerifyUserToken2(botCompanyGoogleSignInID(), params.get("token")));
    ret payload != null
      ? payload.getEmail() + " " + (payload.getEmailVerified() ? "(verified)" : "(not verified)")
      : "No.";
  }
  
  ret loadJQuery()
    + googleSignIn_header()
    + googleSignIn_signInButton(relativeRawBotLink(programID(), "verify"), "alert(data);", "")
    + [[<p><a href="javascript:signOut()">Sign out</a></p>]];
}

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: 374 / 1475
Version history: 13 change(s)
Referenced in: [show references]