Skip to content
View RusuTraianCristian's full-sized avatar
↗️
01101000 01100101 01101100 01101100 01101111
↗️
01101000 01100101 01101100 01101100 01101111

Block or report RusuTraianCristian

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
RusuTraianCristian/README.md

Hello, world!

  • 🌱 TypeScript
  • πŸ‘― Rust

Experienced on the full-stack, focused on interfaces engineering.

crust

fn main() {
    lambda!(handler)
}

fn handler(event: Value, _: Context) -> Result<String, HandlerError> {
    match (event["username"].as_str(), event["password"].as_str()) {
        (Some(username), Some(password)) => {
            match auth::authenticate(username, password) {
                Ok(token) => Ok(token),
                Err(msg) => Err(HandlerError::from(msg)),
            }
        },
        _ => Err(HandlerError::from("Invalid request")),
    }
}

Pinned Loading

  1. Raids Raids Public

    Twitch Extension & Web Application

    JavaScript 1

  2. RustSorting RustSorting Public

    Rust 1