ampproject / ampproject/samples

amp-access: Perform logout via "login" config

Open
#46 1 comment 0 reactions 1 assignee Claimed by @sebastianbenz View on GitHub
Dominant language
HTML
Stars
452
Forks
187
PR merge metrics
No merged PRs in 30d

Description

Configure logout link via login config:

```
"login": {
"login": "<% host %>/amp-access/login/?rid=READER_ID&url=CANONICAL_URL",
"logout": "<% host %>/amp-access/logout/?returnUrl=AMPDOC_URL"
},
```

Then use for logout button

```
Logout
```

Explain advantage of having access to AMP runtime variables.

//cc @dvoytenko @andreban

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.