Skip to content

Instantly share code, notes, and snippets.

@lmarkus
lmarkus / README.MD
Last active July 19, 2024 17:41
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@SevanBadal
SevanBadal / set-nickname.js
Last active April 11, 2024 13:10
username isn’t a standard OIDC claim. So the Auth0 Universal Form (w/username, email, and password fields) returns the local-part of the email as the nickname. This is inconvenient when the client is relying on username data after the form is submitted. One solution is to use a Pre User Registration Flow - setting nickname equal to username.
/**
* You can create PreUserRegistration flows in the Actions -> Flows menu in your Auth0 dashboard
*
* Handler that will be called during the execution of a PreUserRegistration flow.
*
* @param {Event} event - Details about the context and user that is attempting to register.
* @param {PreUserRegistrationAPI} api - Interface whose methods can be used to change the behavior of the signup.
*
*/
exports.onExecutePreUserRegistration = async (event, api) => {